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

[spirv] Implement opCross

This commit is contained in:
Joshua Ashton 2019-07-12 22:11:52 +01:00 committed by Philip Rebohle
parent f280386aec
commit fac3ae9f83
2 changed files with 22 additions and 0 deletions

View File

@ -1669,6 +1669,23 @@ namespace dxvk {
} }
uint32_t SpirvModule::opCross(
uint32_t resultType,
uint32_t x,
uint32_t y) {
uint32_t resultId = this->allocateId();
m_code.putIns (spv::OpExtInst, 7);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Cross);
m_code.putWord(x);
m_code.putWord(y);
return resultId;
}
uint32_t SpirvModule::opIAdd( uint32_t SpirvModule::opIAdd(
uint32_t resultType, uint32_t resultType,
uint32_t a, uint32_t a,

View File

@ -615,6 +615,11 @@ namespace dxvk {
uint32_t y, uint32_t y,
uint32_t a); uint32_t a);
uint32_t opCross(
uint32_t resultType,
uint32_t x,
uint32_t y);
uint32_t opIAdd( uint32_t opIAdd(
uint32_t resultType, uint32_t resultType,
uint32_t a, uint32_t a,