floooh / sokol-tools

Command line tools for use with sokol headers
MIT License
219 stars 54 forks source link

Fix/issue-109: Different approach to reflection parsing for HLSL, MSL, WGSL. #110

Closed floooh closed 10 months ago

floooh commented 10 months ago

Previously the output of the SPIRVCross HLSL/MSL/WGSL pass were used as input to the reflection parsing, which required to create dummy samplers, which in turn could lead to issues like https://github.com/floooh/sokol-tools/issues/109.

The new approach uses common SPIRVCross GLSL output for the reflection parsing (which doesn't require to deal with dummy samplers and seems to produce the correct output for parsing the reflection data - also leading to simpler code).