ash/generator
Marijn Suijten 21bbc79188 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-21 15:58:21 +02:00
..
src ash: Add const STRUCTURE_TYPE to all Vulkan structures for matching with match_struct! macro (#614) 2022-09-21 15:58:21 +02:00
Vulkan-Headers@2c823b7f27 Update Vulkan-Headers to 1.3.219 (#619) 2022-07-06 13:24:26 +02:00
Cargo.toml generator: Upgrade bindgen, heck and vk-parse 2022-07-29 17:26:56 +02:00