Skip to content

Commit 83431bc

Browse files
committed
Handle multi-dimensional arrays in shader input/outputs. Refs baldurk#714
1 parent 368de4b commit 83431bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

renderdoc/driver/shaders/spirv/spirv_disassemble.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3747,6 +3747,10 @@ void AddSignatureParameter(bool isInput, ShaderStage stage, uint32_t id,
37473747
arraySize = type->arraySize;
37483748
isArray = true;
37493749
type = type->baseType;
3750+
3751+
// step through multi-dimensional arrays
3752+
while(type->type == SPVTypeData::eArray)
3753+
type = type->baseType;
37503754
}
37513755

37523756
if(type->type == SPVTypeData::eStruct)

0 commit comments

Comments
 (0)