mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Allow arrays to have a larger varOffset than 16 bytes in assert
This commit is contained in:
@@ -1282,8 +1282,9 @@ SPDBChunk::SPDBChunk(void *chunk)
|
||||
uint32_t comp = (varOffset % 16) / 4;
|
||||
|
||||
// should now be down to a vector, so the remaining offset is the component. Unless we had
|
||||
// multiple indices in which case it's a multi-dimensional array
|
||||
RDCASSERT(varOffset < 16 || defrange->regIndices > 1);
|
||||
// multiple indices in which case it's a multi-dimensional array, or this is a subrange of
|
||||
// an array mapped to a single register.
|
||||
RDCASSERT(varOffset < 16 || defrange->regIndices > 1 || varLen < varTypeByteSize);
|
||||
|
||||
if(vartype->leafType == LF_MATRIX)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user