mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
shader: Implement I2I SAT
This commit is contained in:
parent
d9227e102d
commit
f3ec28dc23
6 changed files with 52 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue