Commit Graph

16 Commits

Author SHA1 Message Date
Robin Voetter
d0897a14da fix parsing issues with vk 1.3.278
This change introduced len/optional attributes for
arrays. Previously, we assumed that these would only
occur on pointers, but now, this information is also
available for arrays.

This adapts the registery and parsing code to also
parse these properly. No modifications are made to the
rendering part as of yet, since these partially filled
arrays cannot be cleanly represented in Zig.
2024-02-17 16:13:37 +01:00
Peter Lef
c7d3723710 Nullable pointer parameters
For procedure parameters which are of pointer type: if the associated
`count` parameter is marked `optional` in the XML, this commit makes the
parameter pointer type nullable.
2023-07-10 10:59:11 -04:00
Robin Voetter
070500f5e5 Update parser for VulkanSC changes
The update that added the VulkanSC changes to vk.xml broke vulkan-zig previously.
2023-03-04 01:24:30 +01:00
ashpil
0873a35392 provide defaults for struct fields vulkan considers optional 2023-02-05 13:33:13 -05:00
Robin Voetter
5af6ffe864 zig stage 2 compatibility 2022-08-20 11:31:36 +02:00
Robin Voetter
cc87740422 improve xml parser 2022-08-20 00:31:42 +02:00
ashpil
871d4e7251 implements default for feature structs 2021-07-08 21:31:41 -04:00
Robin Voetter
de0a048f45 Fix another vk.xml moment 2021-06-14 20:49:09 +02:00
Robin Voetter
511211f038 zig fmt **.zig
This also replaces @byteOffsetOf with @offsetOf.
2021-06-13 15:15:42 +02:00
Robin Voetter
5375c873d9 Vulkan 1.2.175 compatibility 2021-04-13 19:52:06 +02:00
Robin Voetter
9f23e2e16d Vulkan 1.2.170 compatibility 2021-02-16 15:26:22 +01:00
Robin Voetter
7fdb6eaad3 Parse & render sType from spec (fixes #3) 2020-11-26 15:47:04 +01:00
Robin Voetter
7a79846b1b Update to new opaque syntax 2020-10-08 13:09:41 +02:00
Robin Voetter
0928b25a53 Add Khronos license information to generated bindings 2020-07-08 01:41:03 +02:00
Robin Voetter
569c9df5c2 TagFixerUpper 2020-07-05 18:22:45 +02:00
Robin Voetter
cebecfe197 Restructure to allow for other binding generators in the future 2020-07-03 16:40:49 +02:00