diff options
author | bunnei <bunneidev@gmail.com> | 2019-09-18 22:26:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 22:26:05 +0200 |
commit | b31880dc5e0d9aab1171d3476453ad2db00cfd3a (patch) | |
tree | b1ec38b1d4be6f1f61d987608d99d1f6ee428a83 /src/video_core/shader/shader_ir.h | |
parent | Merge pull request #2851 from ReinUsesLisp/srgb (diff) | |
parent | gl_shader_decompiler: Implement shared memory (diff) | |
download | yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar.gz yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar.bz2 yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar.lz yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar.xz yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.tar.zst yuzu-b31880dc5e0d9aab1171d3476453ad2db00cfd3a.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 62816bd56..6aed9bb84 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -208,6 +208,8 @@ private: Node GetInternalFlag(InternalFlag flag, bool negated = false); /// Generates a node representing a local memory address Node GetLocalMemory(Node address); + /// Generates a node representing a shared memory address + Node GetSharedMemory(Node address); /// Generates a temporary, internally it uses a post-RZ register Node GetTemporary(u32 id); @@ -217,8 +219,10 @@ private: void SetPredicate(NodeBlock& bb, u64 dest, Node src); /// Sets an internal flag. src value must be a bool-evaluated node void SetInternalFlag(NodeBlock& bb, InternalFlag flag, Node value); - /// Sets a local memory address. address and value must be a number-evaluated node + /// Sets a local memory address with a value. void SetLocalMemory(NodeBlock& bb, Node address, Node value); + /// Sets a shared memory address with a value. + void SetSharedMemory(NodeBlock& bb, Node address, Node value); /// Sets a temporary. Internally it uses a post-RZ register void SetTemporary(NodeBlock& bb, u32 id, Node value); |