summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-01 07:30:09 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:23 +0200
commite0389286165805258fa2e54014c2dc506ffb9f35 (patch)
treed7830153aac3a2ad93fd93f8b74516bbeb8f3718 /src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
parentshader: Make IMNMX, SHR, SEL stylistically more consistent (diff)
downloadyuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.gz
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.bz2
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.lz
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.xz
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.zst
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/impl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
index 672e140b2..232f8c894 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#pragma once
+
#include "shader_recompiler/environment.h"
#include "shader_recompiler/frontend/ir/basic_block.h"
#include "shader_recompiler/frontend/ir/ir_emitter.h"
@@ -9,6 +11,23 @@
namespace Shader::Maxwell {
+enum class ComparisonOp : u64 {
+ False,
+ LessThan,
+ Equal,
+ LessThanEqual,
+ GreaterThan,
+ NotEqual,
+ GreaterThanEqual,
+ True,
+};
+
+enum class BooleanOp : u64 {
+ And,
+ Or,
+ Xor,
+};
+
class TranslatorVisitor {
public:
explicit TranslatorVisitor(Environment& env_, IR::Block& block) : env{env_}, ir(block) {}