188: Generate extension names r=MaikKlein a=MaikKlein
Adds extension names to the function pointer structs.
`vk::KhrSwapchain::name()`
Currently Rust doesn't support `CStr` as associated consts, so functions have to be used for now.
Co-authored-by: Maik Klein <maikklein@googlemail.com>
180: Fix build on ARM r=MaikKlein a=francesca64
`CStr::from_ptr` takes a `*const c_char`, which is not synonymous with `*const i8`. On ARM in particular, `c_char` is unsigned.
Co-authored-by: Francesca Plebani <francesca@brainiumstudios.com>
177: Update `lazy_static` version to match `shared_library`'s r=MaikKlein a=Chris--B
`shared_library` uses a flexible "`1`" for its `lazy_static` lib. By following suit, `ash` can avoid duplicate versions of `lazy_static` in transient dependencies builds.
I tested this by building `ash`: everything built fine.
Co-authored-by: Chris Butler <chrisbutler296@gmail.com>
169: Issue 142 r=MaikKlein a=coolmedium
Hey here is an attempt to address #142 .
I have used builders in cases where a builder method accepts a structure that sets more than one struct field (e.g. fields like `x_count` and `p_to_some_x`). Otherwise I have usually used `.. Default::default()` when doing so would save typing.
If there is a preferred way to approach this I'm happy to make any changes.
Also, for creating shader modules I have added `examples::bytes_to_u32_vec` to convert the current shader code into a format suitable for passing to the `vk::ShaderModuleCreateInfo::code`. It uses `std::mem::transmute` and is based on the code for `u32::from_ne_bytes` in nightly. I have only tested this on Linux.
Co-authored-by: colin <colin@coolmedium.games>