Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
193: Fix struct generation with constant size arrays r=MaikKlein a=aloucks PR #191 introduced a bug into the generator where constant sized array struct fields were generated as slices. This PR adds a flag to `type_tokens` that will revert that behavior while still generating FFI function signatures with pointers instead of fixed sized arrays (e.g. for `set_blend_constants`). In addition, all instances of `HashMap` and `HashSet` have been replaced with `BTreeMap` and `BTreeSet`, which makes the generation of `vk.rs` idempotent for the same `vk.xml` input. This should obviate the need for #130 and make it much easier to see how changes to the generator or `vk.xml` affect the generated output. Co-authored-by: Aaron Loucks <[email protected]>
- Loading branch information