mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 12:51:03 +00:00
Add missing align to array elements in D3D12 cbuffer decomposition
This commit is contained in:
@@ -932,6 +932,12 @@ void D3D12DebugManager::FillCBufferVariables(const std::string &prefix, size_t &
|
||||
rowDataOffset = AlignUp(rowDataOffset, sizeof(Vec4f));
|
||||
}
|
||||
|
||||
// arrays are also aligned to the nearest Vec4f for each element
|
||||
if(!flatten && isArray)
|
||||
{
|
||||
rowDataOffset = AlignUp(rowDataOffset, sizeof(Vec4f));
|
||||
}
|
||||
|
||||
if(rowDataOffset < data.size())
|
||||
{
|
||||
const byte *d = &data[rowDataOffset];
|
||||
|
||||
Reference in New Issue
Block a user