13fef40d48
* ash: Add `const STRUCTURE_TYPE` to all Vulkan structures for matching with `match_struct!` macro In Vulkan layers extracing a structure based on its `s_type` is a common operation, but comparing against an enum value and subsequently casting to the right type is verbose and error-prone. By generating a `const STRUCTURE_TYPE` with the given value for every Vulkan structure it becomes possible to implement a macro that abstracts this logic away in a safer way. * generator: Reuse `HasStructureType::STRUCTURE_TYPE` in `s_type` initializer |
||
---|---|---|
.. | ||
src | ||
Vulkan-Headers@2c823b7f27 | ||
Cargo.toml |