shader: Implement POPC
This commit is contained in:
parent
cc55d28949
commit
a8c41c50d3
8 changed files with 59 additions and 12 deletions
|
@ -106,6 +106,14 @@ Id EmitBitReverse32(EmitContext& ctx, Id value) {
|
|||
return ctx.OpBitReverse(ctx.U32[1], value);
|
||||
}
|
||||
|
||||
Id EmitBitCount32(EmitContext& ctx, Id value) {
|
||||
return ctx.OpBitCount(ctx.U32[1], value);
|
||||
}
|
||||
|
||||
Id EmitBitwiseNot32(EmitContext& ctx, Id a) {
|
||||
return ctx.OpNot(ctx.U32[1], a);
|
||||
}
|
||||
|
||||
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