mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 07:05:48 +00:00
Fix calculation of array stride on structs in D3D
# Conflicts: # util/test/tests/GL/GL_CBuffer_Zoo.py
This commit is contained in:
@@ -66,7 +66,7 @@ static ShaderVariableType MakeShaderVariableType(DXBC::CBufferVariableType type)
|
||||
{
|
||||
uint32_t stride = type.descriptor.bytesize / RDCMAX(1U, type.descriptor.elements);
|
||||
RDCASSERTMSG("Stride is too large for uint16_t", stride <= 0xffff);
|
||||
ret.descriptor.arrayByteStride = RDCMIN(stride, 0xffffu) & 0xffff;
|
||||
ret.descriptor.arrayByteStride = AlignUp16(RDCMIN(stride, 0xffffu) & 0xffff);
|
||||
|
||||
ret.descriptor.rows = ret.descriptor.columns = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user