diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp index a9c5e9cca..37fc7c7a2 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp | |||
| @@ -163,6 +163,14 @@ Id EmitUMax32(EmitContext& ctx, Id a, Id b) { | |||
| 163 | return ctx.OpUMax(ctx.U32[1], a, b); | 163 | return ctx.OpUMax(ctx.U32[1], a, b); |
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | Id EmitSClamp32(EmitContext& ctx, Id value, Id min, Id max) { | ||
| 167 | return ctx.OpSClamp(ctx.U32[1], value, min, max); | ||
| 168 | } | ||
| 169 | |||
| 170 | Id EmitUClamp32(EmitContext& ctx, Id value, Id min, Id max) { | ||
| 171 | return ctx.OpUClamp(ctx.U32[1], value, min, max); | ||
| 172 | } | ||
| 173 | |||
| 166 | Id EmitSLessThan(EmitContext& ctx, Id lhs, Id rhs) { | 174 | Id EmitSLessThan(EmitContext& ctx, Id lhs, Id rhs) { |
| 167 | return ctx.OpSLessThan(ctx.U1, lhs, rhs); | 175 | return ctx.OpSLessThan(ctx.U1, lhs, rhs); |
| 168 | } | 176 | } |