mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 06:26:30 +00:00
Handle multi-dimensional arrays in shader input/outputs. Refs #714
This commit is contained in:
@@ -3743,6 +3743,10 @@ void AddSignatureParameter(bool isInput, ShaderStage stage, uint32_t id, uint32_
|
||||
arraySize = type->arraySize;
|
||||
isArray = true;
|
||||
type = type->baseType;
|
||||
|
||||
// step through multi-dimensional arrays
|
||||
while(type->type == SPVTypeData::eArray)
|
||||
type = type->baseType;
|
||||
}
|
||||
|
||||
if(type->type == SPVTypeData::eStruct)
|
||||
|
||||
Reference in New Issue
Block a user