Robin Voetter
7ac69f90ef
use a separate build.zig for the example
...
This gives a more concrete example of how to use vulkan-zig, including
build commands as how a downstream user would use vulkan-zig.
2024-04-28 22:22:01 +02:00
Robin Voetter
1fdb930ae3
build example using tool instead of custom step
...
We are about to get rid of the custom build steps, so build
the example in a similar way that the downstream user would.
2024-04-28 14:20:12 +02:00
Robin Voetter
c5725dfb2e
rename 'generator' binary to 'vulkan-zig-generator'
...
This changes the name of the generator binary from something
very generic to something a little more descriptive. If using
the package manager method to use the generator, this will
require updating to the new name.
2024-04-28 11:33:58 +02:00
Robin Voetter
e1f290399e
move generator/ to src/
...
A long time ago there was the idea to use src/ for something else,
but that is no longer relevant. Its nice to switch to a more
conventional repo layout.
2024-04-28 11:27:49 +02:00
Robin Voetter
c3c9333d73
Remove zig.mod
...
Seems this is not really relevant anymore with the new build system
2024-04-28 11:26:44 +02:00
Robin Voetter
c212653f20
Merge pull request #133 from Snektron/ci-fmt
...
ci: format check
2024-04-28 11:00:56 +02:00
Robin Voetter
82ca63bce8
ci: update step versions
2024-04-28 10:56:23 +02:00
Robin Voetter
f811e5b926
ci: format check
2024-04-28 10:49:43 +02:00
Robin Voetter
2ac60ff7cd
Merge pull request #127 from bluesillybeard/master
...
Add extension function metadata for #112
2024-04-28 10:38:34 +02:00
bluesillybeard
d19313ba75
Run zig fmt
2024-04-27 21:27:43 -06:00
bluesillybeard
110d836854
Refactor example to use extension info and feature info for functions
2024-04-26 22:15:08 -06:00
bluesillybeard
e4d6c50b55
Increase branch quota for command flags
2024-04-26 22:14:26 -06:00
bluesillybeard
9479fe480a
Add feature info
2024-04-26 21:56:38 -06:00
bluesillybeard
d4a04e0bea
Implement initial suggestions on PR
2024-04-26 20:44:40 -06:00
dan
500d7cc3e8
fix: change ComptimeStringMap to StaticStringMap
...
reflect changes made in 8af59d1f98
2024-04-26 20:44:40 -06:00
Robin Voetter
571cecdda6
actually run the tests
2024-04-26 20:44:40 -06:00
Robin Voetter
2047f7e7f2
Merge pull request #129 from igaryhe/update-comptimestringmap
...
fix: change ComptimeStringMap to StaticStringMap
2024-04-26 20:35:51 +02:00
dan
bab8f1883d
fix: change ComptimeStringMap to StaticStringMap
...
reflect changes made in 8af59d1f98
2024-04-24 11:16:43 +08:00
Robin Voetter
8391911683
actually run the tests
2024-04-13 23:18:44 +02:00
bluesillybeard
9c45afca2e
Add extension function metadata for #112
2024-04-10 17:06:43 -06:00
Robin Voetter
e60869528c
Merge pull request #126 from igaryhe/fix-fieldparentptr
...
Fix broken @fieldParentPtr
2024-04-01 17:03:38 +02:00
dan
e840119290
Fix broken @fieldParentPtr
2024-03-31 19:42:56 +08:00
Robin Voetter
ac4103a733
Merge pull request #123 from igaryhe/fix-container-layout
...
make ContainerLayout field lowercase
2024-03-14 06:07:27 +01:00
dan
b7ef4e7a76
make ContainerLayout field lowercase
...
sync changes with zig master branch
099f3c4039d5702b073639ef8b55881973b71c80.
2024-03-13 23:29:53 +08:00
Robin Voetter
7f161ce0ed
Merge pull request #121 from Mikastiv/master
...
remove no longer used error from set
2024-02-27 08:48:29 +01:00
Mikastiv
d1e6ebf931
remove no longer used error from set
2024-02-27 00:43:06 -05:00
Robin Voetter
b1f3820d08
Merge pull request #119 from Mikastiv/master
...
Fix compile error for the generator
2024-02-18 01:30:33 +01:00
Mikastiv
85532cf243
fix compile error
2024-02-17 15:20:57 -05:00
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
Robin Voetter
cebfcc6045
improve error handling of generator tool
...
This now also prints more detailed error messages,
similar to the build step.
2024-02-17 15:33:22 +01:00
Robin Voetter
2b6d7691f1
Merge pull request #118 from Sirius902/zig-master
...
Compile on Zig master
2024-02-06 20:29:11 +01:00
Sirius902
be2ebfbff4
Compile on Zig master
2024-02-06 10:35:37 -08:00
Robin Voetter
62e981ad4e
Merge pull request #117 from Sirius902/minimize-fix
...
[Triangle Example] Fix crash when minimizing window
2024-01-24 09:31:20 +01:00
Sirius902
e3bc661349
Fix crash when minimizing window
...
Wait for the device to be idle before exiting
2024-01-23 23:34:36 -08:00
Robin Voetter
d5e577f3f0
Merge pull request #116 from antlilja/fix-casts
...
Fix old style casts in generated vk.zig
2024-01-18 16:32:07 +01:00
antlilja
e72a6bb2d0
Fix old casts (rename and remove type) in vk.zig
2024-01-18 16:21:32 +01:00
Robin Voetter
290aaca5b8
Merge pull request #113 from SammyJames/new_modules
...
fixing up vulkan-zig for new build sys
2024-01-05 10:22:22 +01:00
sammy j
57ad4d5e16
fixing up vulkan-zig for new build design
2024-01-02 18:28:11 -08:00
Robin Voetter
27d9b028eb
fix invalid use of var
2023-11-21 19:56:00 +01:00
Robin Voetter
6d46195c99
make pointers which do not have an 'optional' attribute optional
...
Closes #109
2023-10-21 11:02:48 +02:00
Robin Voetter
1e4e90ffb1
wrap readme
2023-09-25 21:51:52 +02:00
Robin Voetter
14259cc6f5
Merge pull request #108 from timoffex/fix-shader-comp-example
...
Update "Shader compilation" in README
2023-09-25 21:51:19 +02:00
Timofey Peshin
9fbfa26046
Update "Shader compilation" in README
2023-09-24 23:44:05 -07:00
Robin Voetter
348ac5d35a
Merge pull request #106 from nolanderc/format-flags
...
Format flags
2023-08-23 22:33:55 +02:00
Christofer Nolander
190a4a054d
add leading dot for bit flags format
2023-08-23 22:17:05 +02:00
Christofer Nolander
2287412536
use format mixin for bit-flags
2023-08-23 22:12:17 +02:00
Christofer Nolander
5b99c4992a
format bit flags as set
...
This changes to format output from:
MyFlagType{ .first_bit = true, second_bit = false, _reserved_bit_0 = false, _reserved_bit_1 = false }
to the following:
MyFlagType{ first_bit }
That is, we only show bits which are `true`.
2023-08-23 20:01:44 +02:00
Robin Voetter
ed9401c72e
Merge pull request #105 from tiawl/master
...
Add logs for std.zig.Ast.parse() failure
2023-08-09 22:20:58 +02:00
tiawl
4bc0666679
Add logs for std.zig.Ast.parse() failure
2023-08-09 21:23:07 +02:00
Robin Voetter
510c6b836b
remove is_pub usage from builtin.Type.Declararion
...
This field was removed, see
3c08fe931a
2023-08-04 23:29:41 +02:00