diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-01 01:30:09 -0500 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:23 -0400 |
commit | e0389286165805258fa2e54014c2dc506ffb9f35 (patch) | |
tree | d7830153aac3a2ad93fd93f8b74516bbeb8f3718 /src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | |
parent | bec7d3111d3de2a7a8384b1e761bc3692afef9c7 (diff) |
shader: Implement ISET, add common_funcs
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/impl.h')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | 19 |
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 672e140b24..232f8c8949 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) {} |