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

[spirv] Implement opFMix

This commit is contained in:
Joshua Ashton 2019-05-05 21:30:39 +01:00 committed by Philip Rebohle
parent 649cc07f5e
commit f280386aec
2 changed files with 25 additions and 0 deletions

View File

@ -1648,6 +1648,25 @@ namespace dxvk {
m_code.putWord(operand);
return resultId;
}
uint32_t SpirvModule::opFMix(
uint32_t resultType,
uint32_t x,
uint32_t y,
uint32_t a) {
uint32_t resultId = this->allocateId();
m_code.putIns (spv::OpExtInst, 8);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FMix);
m_code.putWord(x);
m_code.putWord(y);
m_code.putWord(a);
return resultId;
}
uint32_t SpirvModule::opIAdd(

View File

@ -608,6 +608,12 @@ namespace dxvk {
uint32_t opFAbs(
uint32_t resultType,
uint32_t operand);
uint32_t opFMix(
uint32_t resultType,
uint32_t x,
uint32_t y,
uint32_t a);
uint32_t opIAdd(
uint32_t resultType,