vulkan-renderer icon indicating copy to clipboard operation
vulkan-renderer copied to clipboard

Implement basic SPIR-V reflection

Open yeetari opened this issue 4 years ago • 3 comments

  • [ ] 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.

yeetari avatar Jul 17 '21 21:07 yeetari

Maybe change title to "refactoring" or "improvements", otherwise people might think it's about actual reflection in rendering :D

IAmNotHanni avatar Jul 17 '21 22:07 IAmNotHanni

https://www.khronos.org/assets/uploads/developers/library/2016-vulkan-devday-uk/4-Using-spir-v-with-spirv-cross.pdf

IAmNotHanni avatar Sep 30 '22 23:09 IAmNotHanni

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.

IAmNotHanni avatar Mar 12 '23 14:03 IAmNotHanni