diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 02:56:08 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:49 +0100 |
commit | 833d0806f92b893220cf43d63c223a7cd9af9022 (patch) | |
tree | 523c7921c8fb055608c6aef633c0c6efbc54da14 /src/video_core/shader/shader_ir.h | |
parent | shader_ir: Add setters (diff) | |
download | yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar.gz yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar.bz2 yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar.lz yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar.xz yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.tar.zst yuzu-833d0806f92b893220cf43d63c223a7cd9af9022.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 192b18ac7..93455412f 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -643,6 +643,11 @@ private: /// Sets a local memory address. address and value must be a number-evaluated node void SetLocalMemory(BasicBlock& bb, Node address, Node value); + /// Conditionally absolute/negated float. Absolute is applied first + Node GetOperandAbsNegFloat(Node value, bool absolute, bool negate); + /// Conditionally saturates a float + Node GetSaturatedFloat(Node value, bool saturate = true); + template <typename... T> inline Node Operation(OperationCode code, const T*... operands) { return StoreNode(OperationNode(code, operands...)); |