ash/generator
Marijn Suijten e99222521e
generator: Derive slice getters/setters for runtime-bounded static arrays (#858)
Upstream Vulkan is okay with the request to annotate static arrays with
a `len="structField"` annotation when the size of the static arrary
is bounded by a value at runtime.  This allows us to generate more
convenient builder functions that copy slices into the target "builder"
struct while _also_ updating the length, rather than forcing the caller
to move an array of the desired length with zeroed elements and setting
the length field separately.

In addition provide a safe getter (and use it in the `Debug`
implementation) to return a slice view containing only valid items
per the length field.  As with strings this is only possible for
static-sized arrays as we can never safely dereference a random pointer.
2024-01-11 00:33:32 +01:00
..
src generator: Derive slice getters/setters for runtime-bounded static arrays (#858) 2024-01-11 00:33:32 +01:00
Vulkan-Headers@9d27c893cd Update Vulkan-Headers to 1.3.271 (#816) 2023-11-28 15:05:27 +01:00
Cargo.toml build(deps): update syn requirement from 1.0 to 2.0 (#834) 2023-11-27 09:33:50 +01:00