1
0
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:
Philip Rebohle 2018-06-07 14:32:34 +02:00
parent 420b7218ae
commit ff11fc2445
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 17 additions and 0 deletions

View File

@ -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) {

View File

@ -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);