shader: Implement DMNMX, DSET, DSETP
This commit is contained in:
parent
56be556eee
commit
e4e1cc11b8
16 changed files with 210 additions and 59 deletions
|
@ -529,6 +529,8 @@ Value IREmitter::Select(const U1& condition, const Value& true_value, const Valu
|
|||
return Inst(Opcode::SelectU64, condition, true_value, false_value);
|
||||
case Type::F32:
|
||||
return Inst(Opcode::SelectF32, condition, true_value, false_value);
|
||||
case Type::F64:
|
||||
return Inst(Opcode::SelectF64, condition, true_value, false_value);
|
||||
default:
|
||||
throw InvalidArgument("Invalid type {}", true_value.Type());
|
||||
}
|
||||
|
|
|
@ -131,6 +131,7 @@ OPCODE(SelectU32, U32, U1,
|
|||
OPCODE(SelectU64, U64, U1, U64, U64, )
|
||||
OPCODE(SelectF16, F16, U1, F16, F16, )
|
||||
OPCODE(SelectF32, F32, U1, F32, F32, )
|
||||
OPCODE(SelectF64, F64, U1, F64, F64, )
|
||||
|
||||
// Bitwise conversions
|
||||
OPCODE(BitCastU16F16, U16, F16, )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue