Closed johnb-odplot closed 4 months ago
Thanks for the bug report! This is fallout from the big code gen refactoring. I'll try to provide a fix later today.
Ok, this should be fixed now. I was just missing a call which pops the indentation level after a storage block.
Binaries in sokol-tools-bin will be updated after this CI pipeline has finished: https://github.com/floooh/sokol-tools/actions/runs/9030397572
When compiling a shader that includes a storage buffer in the vertex stage, the produced yaml reflection has the fragment stage indented once too far in. In this example, the fragment 'fs' stage is considered one of the objects of 'vs'. I am using javascript to convert the yaml to a javascript object, and this indentation produces the incorrect result