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:
parent
649cc07f5e
commit
f280386aec
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user