ash/generator
Marijn Suijten 13fef40d48
ash: Add const STRUCTURE_TYPE to all Vulkan structures for matching with match_struct! macro (#614)
* 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
2022-09-19 12:39:54 +02:00
..
src ash: Add const STRUCTURE_TYPE to all Vulkan structures for matching with match_struct! macro (#614) 2022-09-19 12:39:54 +02:00
Vulkan-Headers@2c823b7f27 Update Vulkan-Headers to 1.3.219 (#619) 2022-07-03 21:54:17 +02:00
Cargo.toml generator: Upgrade bindgen, heck and vk-parse 2022-07-29 08:11:27 -07:00