mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Handle OpAccessChain with zero indexes in SPIRV Reflection
It is legal to have zero indexes
This commit is contained in:
@@ -1128,8 +1128,10 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
|
||||
if(topLevelChildChain.find(access.base) != topLevelChildChain.end())
|
||||
globalId = topLevelChildChain[access.base];
|
||||
|
||||
usedStructChildren[globalId].insert(
|
||||
EvaluateConstant(access.indexes[0], specInfo).value.u32v[0]);
|
||||
// It is legal to have zero indexes
|
||||
if(!access.indexes.empty())
|
||||
usedStructChildren[globalId].insert(
|
||||
EvaluateConstant(access.indexes[0], specInfo).value.u32v[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user