mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-11 08:15:36 +00:00
Fix constant buffer byte size when lacking reflection data. Refs #324
This commit is contained in:
@@ -1228,7 +1228,7 @@ void DXBCFile::GuessResources()
|
||||
cb.name = desc.name;
|
||||
|
||||
cb.descriptor.name = cb.name;
|
||||
cb.descriptor.byteSize = numVecs * 4;
|
||||
cb.descriptor.byteSize = numVecs * 4 * sizeof(float);
|
||||
cb.descriptor.type = CBuffer::Descriptor::TYPE_CBUFFER;
|
||||
cb.descriptor.flags = 0;
|
||||
cb.descriptor.numVars = numVecs;
|
||||
|
||||
Reference in New Issue
Block a user