Skip to content

Commit

Permalink
Revert "Fix dfranx#332 for matrices accessing columns and vectors acc…
Browse files Browse the repository at this point in the history
…essing components via array-index-operator"

This reverts commit 9f9c9b2. (+1 squashed commits)

Squashed commits:

[9f9c9b2] Fix dfranx#332 for matrices accessing columns and vectors accessing components via array-index-operator
  • Loading branch information
swp-ariaci committed Jan 24, 2025
1 parent 95c8004 commit b4c2a8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/SHADERed/Objects/Debug/ExpressionCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,7 @@ namespace ed {
resType = m_module->type<spvgentwo::vector_t<float, 4>*>();

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()) {
Expand Down

0 comments on commit b4c2a8f

Please sign in to comment.