SPIRV-Layout
This library parses SPIRV binaries and retrieves reflection info.
It is most useful for deriving a Vulkan DescriptorSetLayout
from a shader module, as well as finding offsets and names of individual fields in the Uniform Buffers of a shader.
This crate is used by the vulkan-engine project.
Usage
let bytes = read.unwrap;
let words = unsafe ;
let module = from_words.unwrap;
println!;
for var in module.get_uniforms
println!;
for var in module.get_push_constants
For an actual usage example, see examples/reflect-shader