1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[spirv] Add opFSign

This commit is contained in:
Georg Lehmann 2021-08-03 16:15:32 +02:00 committed by Joshie
parent 52fac82a45
commit c5ab87f353
2 changed files with 19 additions and 0 deletions

View File

@ -1793,6 +1793,21 @@ namespace dxvk {
}
uint32_t SpirvModule::opFSign(
uint32_t resultType,
uint32_t operand) {
uint32_t resultId = this->allocateId();
m_code.putIns (spv::OpExtInst, 6);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FSign);
m_code.putWord(operand);
return resultId;
}
uint32_t SpirvModule::opFMix(
uint32_t resultType,
uint32_t x,

View File

@ -654,6 +654,10 @@ namespace dxvk {
uint32_t resultType,
uint32_t operand);
uint32_t opFSign(
uint32_t resultType,
uint32_t operand);
uint32_t opFMix(
uint32_t resultType,
uint32_t x,