summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/ir_emitter.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-28 05:01:28 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commitdbc1e5cde79b9165605741e1ea7158513ef6499f (patch)
treeba55cdcda905c716ac1bde0463103b425b20bed6 /src/shader_recompiler/frontend/ir/ir_emitter.h
parentvk_pipeline_cache: Fix size hashing of shaders (diff)
downloadyuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar.gz
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar.bz2
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar.lz
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar.xz
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.tar.zst
yuzu-dbc1e5cde79b9165605741e1ea7158513ef6499f.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h
index 842c2bdaf..269f367a4 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.h
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.h
@@ -206,6 +206,8 @@ public:
[[nodiscard]] U32 SMax(const U32& a, const U32& b);
[[nodiscard]] U32 UMax(const U32& a, const U32& b);
[[nodiscard]] U32 IMax(const U32& a, const U32& b, bool is_signed);
+ [[nodiscard]] U32 SClamp(const U32& value, const U32& min, const U32& max);
+ [[nodiscard]] U32 UClamp(const U32& value, const U32& min, const U32& max);
[[nodiscard]] U1 ILessThan(const U32& lhs, const U32& rhs, bool is_signed);
[[nodiscard]] U1 IEqual(const U32U64& lhs, const U32U64& rhs);