Don't add extra prefix on constant buffer array variables. Closes #1828

This commit is contained in:
baldurk
2020-04-14 15:59:34 +01:00
parent b7bfbe3dba
commit e78aec6d36
+1 -1
View File
@@ -4334,7 +4334,7 @@ void AddCBufferToGlobalState(const DXBCBytecode::Program &program, GlobalState &
// individual elements of the constant buffer. For CB arrays, add an extra source
// var for the CB array index
SourceVariableMapping cbArrayMapping;
global.constantBlocks[i].members[arrayIndex].name = identifierPrefix;
global.constantBlocks[i].members[arrayIndex].name = StringFormat::Fmt("[%u]", arrayIndex);
cbArrayMapping.name = variablePrefix;
cbArrayMapping.variables.push_back(
DebugVariableReference(DebugVariableType::Constant, identifierPrefix));