mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-16 09:07:59 -05:00
shader: Implement I2I SAT
This commit is contained in:
@ -163,6 +163,14 @@ Id EmitUMax32(EmitContext& ctx, Id a, Id b) {
|
||||
return ctx.OpUMax(ctx.U32[1], a, b);
|
||||
}
|
||||
|
||||
Id EmitSClamp32(EmitContext& ctx, Id value, Id min, Id max) {
|
||||
return ctx.OpSClamp(ctx.U32[1], value, min, max);
|
||||
}
|
||||
|
||||
Id EmitUClamp32(EmitContext& ctx, Id value, Id min, Id max) {
|
||||
return ctx.OpUClamp(ctx.U32[1], value, min, max);
|
||||
}
|
||||
|
||||
Id EmitSLessThan(EmitContext& ctx, Id lhs, Id rhs) {
|
||||
return ctx.OpSLessThan(ctx.U1, lhs, rhs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user