1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[spirv] Implement opIsNan

This commit is contained in:
Philip Rebohle 2019-11-30 17:01:18 +01:00
parent abff2afeaf
commit 2e51e28849
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 17 additions and 0 deletions

View File

@ -2719,6 +2719,19 @@ namespace dxvk {
}
uint32_t SpirvModule::opIsNan(
uint32_t resultType,
uint32_t operand) {
uint32_t resultId = this->allocateId();
m_code.putIns (spv::OpIsNan, 4);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(operand);
return resultId;
}
uint32_t SpirvModule::opFunctionCall(
uint32_t resultType,
uint32_t functionId,

View File

@ -942,6 +942,10 @@ namespace dxvk {
uint32_t operand1,
uint32_t operand2);
uint32_t opIsNan(
uint32_t resultType,
uint32_t operand);
uint32_t opFunctionCall(
uint32_t resultType,
uint32_t functionId,