mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-15 21:28:06 -05:00
shader: Implement ISET, add common_funcs
This commit is contained in:
@ -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) {}
|
||||
|
Reference in New Issue
Block a user