mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 19:24:10 +01:00
[spirv] Added OpFConvert instruction
This commit is contained in:
parent
420b7218ae
commit
ff11fc2445
@ -2388,6 +2388,19 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opFConvert(
|
||||
uint32_t resultType,
|
||||
uint32_t operand) {
|
||||
uint32_t resultId = this->allocateId();
|
||||
|
||||
m_code.putIns (spv::OpFConvert, 4);
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(operand);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opPackHalf2x16(
|
||||
uint32_t resultType,
|
||||
uint32_t operand) {
|
||||
|
@ -836,6 +836,10 @@ namespace dxvk {
|
||||
uint32_t resultType,
|
||||
uint32_t operand);
|
||||
|
||||
uint32_t opFConvert(
|
||||
uint32_t resultType,
|
||||
uint32_t operand);
|
||||
|
||||
uint32_t opPackHalf2x16(
|
||||
uint32_t resultType,
|
||||
uint32_t operand);
|
||||
|
Loading…
Reference in New Issue
Block a user