Commit graph

11 commits

Author SHA1 Message Date
Marijn Suijten
06b4f8ef35
Vulkan 1.2.175: Provisional Video Extensions ()
* generator: Add edegecases for broken Video extension enum variants

* Replace deprecated `make_version()` with `make_api_version()`

* generator: Use the same predicate for push_next and its traits

Some structs turn out to be root structs when their name is not in the
`root_structs` set, even when they themselves extend another struct.
This was already taken care of for `push_next` which is emitted in this
situation, but the trait referenced by `push_next`'s `T` bound is still
relying on the `extends` field to not exist in `vk.xml` at all, leading
to it not being generated despite `push_next` needing it.

Fixes: 215511f ("Implement ExtendXXX for multiple root create infos if
there are more than 1")

* Update Vulkan-Headers to 12.175

* generator: Generate low-level structs with bindgen (for vk_video)
2021-06-06 11:00:29 +02:00
aloucks
bd6515ced8
Split vk.rs into multiple files ()
* Allow the generator to be run from project root dir

* Split vk.rs into multiple files

* Breakup and remove generated vk/prelude.rs

Generator changes:

- No longer convert current dir to a string when checking if the
  path ends with 'generator'
- Pass the 'ash/src' dir instead of the 'vk.rs' path

Generated and generated output changes:

- The majority of prelude.rs has been moved to macros.rs
- The pointer chain and Handle are now included in vk.rs
- Platform types has been moved to its own file.
2020-04-19 19:12:17 +02:00
Aaron Loucks
634b618852 Run cargo fmt 2019-05-25 15:38:28 -04:00
Aaron Loucks
1ba1d46eb2 Update generator and examples to edition 2018 2019-05-25 15:34:18 -04:00
Maik Klein
3cacb4a00a Add support for extension constants 2018-07-29 22:39:45 +02:00
Maik Klein
1a3094d4c2 Add extensions 2018-07-21 12:56:16 +02:00
Maik Klein
dc378d7b9f Move from vkxml to vk-parse 2018-06-05 17:46:57 +02:00
Maik Klein
b47b20023e Generate bitmasks 2018-06-05 17:46:32 +02:00
Maik Klein
9d31e95f94 Add function pointer calls 2018-06-05 17:46:32 +02:00
Maik Klein
6691e7e79f Remove vk:: prefix for types 2018-06-05 17:46:32 +02:00
Maik Klein
be08103d1d Init generator 2018-06-05 17:46:32 +02:00