ash/generator
Marijn Suijten 82ca24663f
generator: Untangle mismatched parameter/return fn signatures in types (#437)
* generator: Untangle mismatched parameter/return fn signatures in types

With function typedefs for commands having some elements filtered out
(by name) if they were previously defined already, combined with
unfiltered arrays containing the parameter sets and return type for
_all_ commands expanded together in `quote!` macros the wrong array
elements get combined resulting in incorrect signatures.  No-one seems
to use function pointer types (but we should!) which is why this has
gone unnoticed for some time.

* generator: Derive clone for function pointers instead of generating it

* generator: Regroup token generation per command instead of across arrays

This complements the previous commit by avoiding mismatches in array
content altogether, instead of expanding multiple arrays within a single
`#()*` quote expression and assuming they all contain the same data in
the same order, reducing cognitive overhead while reading this code.
2021-05-24 00:13:29 +02:00
..
src generator: Untangle mismatched parameter/return fn signatures in types (#437) 2021-05-24 00:13:29 +02:00
Vulkan-Headers@e1d8c4931d Update Vulkan-Headers to 1.2.174 (#429) 2021-05-11 00:00:55 +02:00
Cargo.toml generator: Use stable vk-parse 0.6 release (#434) 2021-05-11 21:36:44 +02:00