Don't apply descriptor offset to byte offset fetching cbuffer from table

This commit is contained in:
baldurk
2020-05-19 16:40:30 +01:00
parent ad86556ceb
commit e5a4c57d25
+1 -2
View File
@@ -1680,8 +1680,7 @@ void GatherConstantBuffers(WrappedID3D12Device *pDevice, const DXBCBytecode::Pro
pDevice->GetResourceManager()->GetCurrentAs<ID3D12Resource>(resId);
cbufData.clear();
pDevice->GetDebugManager()->GetBufferData(pCbvResource, element.offset + byteOffset, 0,
cbufData);
pDevice->GetDebugManager()->GetBufferData(pCbvResource, byteOffset, 0, cbufData);
AddCBufferToGlobalState(program, global, sourceVars, refl, mapping, slot, cbufData);
desc++;