Closed danginsburg closed 8 months ago
this seems related to https://github.com/KhronosGroup/SPIRV-Reflect/issues/230
I added logic to prevent infinite looping, but seems that causes things to crash once someone tries to use a valid array like g_GlobalsBDAPerStage_0[6];
... already started looking into a fix so can add this to it to make sure it works
I am trying to use spirv-reflect to find out which members are statically referenced in a push_constant containing multiple buffer_references. This code is generated from slang, but I've stripped it down to create a minimal repro:
If you compile this with glslangValidator as follows (or using the attached test.psv):
Then try to run it through spirv-reflect in a debug build (I'm on main to 3f468129720eded0cef4077302e491036d099856):
@greg-lunarg had made patches to support reflecting statically referenced members in a buffer_reference, but it appears to be breaking down on this use case.
test.zip