shader: Implement ISET, add common_funcs

This commit is contained in:
ameerj 2021-03-01 01:30:09 -05:00
parent a86f903ce3
commit 14a3b85831
8 changed files with 150 additions and 50 deletions

View file

@ -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) {}