Fix DXIL Load of a single element from a global array Closes #3549

This commit is contained in:
Jake Turner
2025-03-04 20:42:08 +00:00
parent 8dc2929ec1
commit ab3e46d26d
+1 -1
View File
@@ -4290,7 +4290,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
}
const MemoryTracking::Allocation &allocation = itAlloc->second;
ShaderVariable arg;
if(allocation.global)
if(allocation.global && !IsVariableAssigned(ptrId))
{
RDCASSERT(IsVariableAssigned(baseMemoryId));
arg = m_Variables[baseMemoryId];