shader: Implement POPC
This commit is contained in:
parent
cc55d28949
commit
a8c41c50d3
8 changed files with 59 additions and 12 deletions
|
@ -808,6 +808,14 @@ U32 IREmitter::BitReverse(const U32& value) {
|
|||
return Inst<U32>(Opcode::BitReverse32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::BitCount(const U32& value) {
|
||||
return Inst<U32>(Opcode::BitCount32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::BitwiseNot(const U32& a) {
|
||||
return Inst<U32>(Opcode::BitwiseNot32, a);
|
||||
}
|
||||
|
||||
U1 IREmitter::ILessThan(const U32& lhs, const U32& rhs, bool is_signed) {
|
||||
return Inst<U1>(is_signed ? Opcode::SLessThan : Opcode::ULessThan, lhs, rhs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue