vulkan-renderer
vulkan-renderer copied to clipboard
Implement basic SPIR-V reflection
- [ ] Wait for #533 to be merged
This PR introduces SPIR-V reflection to parse the execution stage and push constant size from each shader. We can take this further and extract more things like descriptor set layouts in the future.
Maybe change title to "refactoring" or "improvements", otherwise people might think it's about actual reflection in rendering :D
https://www.khronos.org/assets/uploads/developers/library/2016-vulkan-devday-uk/4-Using-spir-v-with-spirv-cross.pdf
I think I will take over this pull request and implement it based on spirv-cross. I mentioned on Discord already that I don't see much sense in writing the shader reflection code ourselves, even though spirv-cross might be more massive of a library than we need :) Also, it looks like it's being tested and maintained continuously.