1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[spirv] Implement opVectorTimesScalar

This commit is contained in:
Joshua Ashton 2019-04-03 18:10:10 +01:00 committed by Philip Rebohle
parent f1a8e02e0f
commit a770c73dbc
2 changed files with 22 additions and 2 deletions

View File

@ -1753,8 +1753,23 @@ namespace dxvk {
m_code.putWord(b);
return resultId;
}
uint32_t SpirvModule::opVectorTimesScalar(
uint32_t resultType,
uint32_t vector,
uint32_t scalar) {
uint32_t resultId = this->allocateId();
m_code.putIns(spv::OpVectorTimesScalar, 5);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(vector);
m_code.putWord(scalar);
return resultId;
}
uint32_t SpirvModule::opFFma(
uint32_t resultType,
uint32_t a,

View File

@ -641,6 +641,11 @@ namespace dxvk {
uint32_t resultType,
uint32_t a,
uint32_t b);
uint32_t opVectorTimesScalar(
uint32_t resultType,
uint32_t vector,
uint32_t scalar);
uint32_t opFFma(
uint32_t resultType,