Handle multi-dimensional arrays in shader input/outputs. Refs #714

This commit is contained in:
baldurk
2018-02-09 19:02:25 +00:00
parent 5a5d8380ad
commit 387de2527e
@@ -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)