glsl -> SPV: fix OpVectorInsertDynamic result type bug.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31262 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
3a13a0c71b
commit
e61ed59726
2 changed files with 6 additions and 5 deletions
|
|
@ -1857,8 +1857,9 @@ void Builder::accessChainStore(Id rvalue)
|
|||
Id tempBaseId = createLoad(base);
|
||||
source = createLvalueSwizzle(getTypeId(tempBaseId), tempBaseId, rvalue, accessChain.swizzle);
|
||||
} else if (accessChain.component) {
|
||||
Instruction* vectorInsert = new Instruction(getUniqueId(), getTypeId(rvalue), OpVectorInsertDynamic);
|
||||
vectorInsert->addIdOperand(createLoad(base));
|
||||
Id tempBaseId = createLoad(base);
|
||||
Instruction* vectorInsert = new Instruction(getUniqueId(), getTypeId(tempBaseId), OpVectorInsertDynamic);
|
||||
vectorInsert->addIdOperand(tempBaseId);
|
||||
vectorInsert->addIdOperand(rvalue);
|
||||
vectorInsert->addIdOperand(accessChain.component);
|
||||
buildPoint->addInstruction(vectorInsert);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue