summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
diff options
context:
space:
mode:
authorGravatar ameerj2021-03-01 01:30:09 -0500
committerGravatar ameerj2021-07-22 21:51:23 -0400
commite0389286165805258fa2e54014c2dc506ffb9f35 (patch)
treed7830153aac3a2ad93fd93f8b74516bbeb8f3718 /src/shader_recompiler/frontend/maxwell/translate/impl/impl.h
parentshader: Make IMNMX, SHR, SEL stylistically more consistent (diff)
downloadyuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.gz
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.tar.xz
yuzu-e0389286165805258fa2e54014c2dc506ffb9f35.zip
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.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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#pragma once
6
5#include "shader_recompiler/environment.h" 7#include "shader_recompiler/environment.h"
6#include "shader_recompiler/frontend/ir/basic_block.h" 8#include "shader_recompiler/frontend/ir/basic_block.h"
7#include "shader_recompiler/frontend/ir/ir_emitter.h" 9#include "shader_recompiler/frontend/ir/ir_emitter.h"
@@ -9,6 +11,23 @@
9 11
10namespace Shader::Maxwell { 12namespace Shader::Maxwell {
11 13
14enum class ComparisonOp : u64 {
15 False,
16 LessThan,
17 Equal,
18 LessThanEqual,
19 GreaterThan,
20 NotEqual,
21 GreaterThanEqual,
22 True,
23};
24
25enum class BooleanOp : u64 {
26 And,
27 Or,
28 Xor,
29};
30
12class TranslatorVisitor { 31class TranslatorVisitor {
13public: 32public:
14 explicit TranslatorVisitor(Environment& env_, IR::Block& block) : env{env_}, ir(block) {} 33 explicit TranslatorVisitor(Environment& env_, IR::Block& block) : env{env_}, ir(block) {}