diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 02:53:43 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:49 +0100 |
commit | 6b9eea3fe55f882d624211415c7777e1eec7f1bd (patch) | |
tree | 05c44dd73eacbad492a2994c2c49ea140ea9be1f /src/video_core/shader/shader_ir.h | |
parent | shader_ir: Add local memory getters (diff) | |
download | yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar.gz yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar.bz2 yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar.lz yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar.xz yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.tar.zst yuzu-6b9eea3fe55f882d624211415c7777e1eec7f1bd.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 64c30bb6a..192b18ac7 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -634,6 +634,14 @@ private: /// Generates a node representing a local memory address Node GetLocalMemory(Node address); + /// Sets a register. src value must be a number-evaluated node. + void SetRegister(BasicBlock& bb, Tegra::Shader::Register dest, Node src); + /// Sets a predicate. src value must be a bool-evaluated node + void SetPredicate(BasicBlock& bb, u64 dest, Node src); + /// Sets an internal flag. src value must be a bool-evaluated node + void SetInternalFlag(BasicBlock& bb, InternalFlag flag, Node value); + /// Sets a local memory address. address and value must be a number-evaluated node + void SetLocalMemory(BasicBlock& bb, Node address, Node value); template <typename... T> inline Node Operation(OperationCode code, const T*... operands) { |