shader: Implement FLO
This commit is contained in:
parent
e038928616
commit
103b9da4f7
8 changed files with 75 additions and 18 deletions
|
@ -812,8 +812,16 @@ U32 IREmitter::BitCount(const U32& value) {
|
|||
return Inst<U32>(Opcode::BitCount32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::BitwiseNot(const U32& a) {
|
||||
return Inst<U32>(Opcode::BitwiseNot32, a);
|
||||
U32 IREmitter::BitwiseNot(const U32& value) {
|
||||
return Inst<U32>(Opcode::BitwiseNot32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::FindSMsb(const U32& value) {
|
||||
return Inst<U32>(Opcode::FindSMsb32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::FindUMsb(const U32& value) {
|
||||
return Inst<U32>(Opcode::FindUMsb32, value);
|
||||
}
|
||||
|
||||
U32 IREmitter::SMin(const U32& a, const U32& b) {
|
||||
|
|
|
@ -161,8 +161,10 @@ public:
|
|||
bool is_signed);
|
||||
[[nodiscard]] U32 BitReverse(const U32& value);
|
||||
[[nodiscard]] U32 BitCount(const U32& value);
|
||||
[[nodiscard]] U32 BitwiseNot(const U32& a);
|
||||
[[nodiscard]] U32 BitwiseNot(const U32& value);
|
||||
|
||||
[[nodiscard]] U32 FindSMsb(const U32& value);
|
||||
[[nodiscard]] U32 FindUMsb(const U32& value);
|
||||
[[nodiscard]] U32 SMin(const U32& a, const U32& b);
|
||||
[[nodiscard]] U32 UMin(const U32& a, const U32& b);
|
||||
[[nodiscard]] U32 SMax(const U32& a, const U32& b);
|
||||
|
|
|
@ -235,6 +235,8 @@ OPCODE(BitReverse32, U32, U32,
|
|||
OPCODE(BitCount32, U32, U32, )
|
||||
OPCODE(BitwiseNot32, U32, U32, )
|
||||
|
||||
OPCODE(FindSMsb32, U32, U32, )
|
||||
OPCODE(FindUMsb32, U32, U32, )
|
||||
OPCODE(SMin32, U32, U32, U32, )
|
||||
OPCODE(UMin32, U32, U32, U32, )
|
||||
OPCODE(SMax32, U32, U32, U32, )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue