Skip to content

Commit

Permalink
Merge #193
Browse files Browse the repository at this point in the history
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
bors[bot] and aloucks committed Mar 15, 2019
2 parents 793acaf + 23cbec8 commit 57859ba
Show file tree
Hide file tree
Showing 3 changed files with 2,307 additions and 2,257 deletions.
Loading

0 comments on commit 57859ba

Please sign in to comment.