We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c8004 commit 16ebf22Copy full SHA for 16ebf22
src/SHADERed/Objects/Debug/ExpressionCompiler.cpp
@@ -684,10 +684,7 @@ namespace ed {
684
resType = m_module->type<spvgentwo::vector_t<float, 4>*>();
685
686
if (resType != nullptr) {
687
- spvgentwo::Instruction* tempVar = bb->opVariable(obj->getResultTypeInstr(), spvgentwo::spv::StorageClass::Function);
688
- bb->opStore(tempVar, obj);
689
- spvgentwo::Instruction* vecPtr = bb->opAccessChain(resType, tempVar, m_visit(a_access->Indices[0]));
690
-
+ spvgentwo::Instruction* vecPtr = bb->opAccessChain(resType, obj, m_visit(a_access->Indices[0]));
691
return bb->opLoad(vecPtr);
692
}
693
} else if (obj->getType()->isArray() || obj->getType()->isStruct()) {
0 commit comments