From b4c2a8f69430d4424ef9a1fe48850202bd618dbe Mon Sep 17 00:00:00 2001 From: Patrick Morgenstern Date: Fri, 24 Jan 2025 10:38:11 +0100 Subject: [PATCH] Revert "Fix #332 for matrices accessing columns and vectors accessing components via array-index-operator" This reverts commit 9f9c9b23cdda086e93807a4b6da85724c75813f9. (+1 squashed commits) Squashed commits: [9f9c9b2] Fix #332 for matrices accessing columns and vectors accessing components via array-index-operator --- src/SHADERed/Objects/Debug/ExpressionCompiler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/SHADERed/Objects/Debug/ExpressionCompiler.cpp b/src/SHADERed/Objects/Debug/ExpressionCompiler.cpp index 048eb590..082fff1a 100644 --- a/src/SHADERed/Objects/Debug/ExpressionCompiler.cpp +++ b/src/SHADERed/Objects/Debug/ExpressionCompiler.cpp @@ -684,10 +684,7 @@ namespace ed { resType = m_module->type*>(); if (resType != nullptr) { - spvgentwo::Instruction* tempVar = bb->opVariable(obj->getResultTypeInstr(), spvgentwo::spv::StorageClass::Function); - bb->opStore(tempVar, obj); - spvgentwo::Instruction* vecPtr = bb->opAccessChain(resType, tempVar, m_visit(a_access->Indices[0])); - + spvgentwo::Instruction* vecPtr = bb->opAccessChain(resType, obj, m_visit(a_access->Indices[0])); return bb->opLoad(vecPtr); } } else if (obj->getType()->isArray() || obj->getType()->isStruct()) {