Commit Graph

494 Commits

Author SHA1 Message Date
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
Robin Voetter
391998e535 Merge pull request #102 from CodesOtakuYT/patch-3
Provide more info about vk.xml path and fix generator path in README
2023-07-26 18:27:42 +02:00
Codotaku
a5aac7ad14 Provide more info about vk.xml path 2023-07-26 16:39:20 +01:00
Codotaku
e014248b3b Provide more info about vk.xml path 2023-07-26 15:36:21 +01:00
Robin Voetter
4156f738f0 Merge pull request #101 from lefp/fix_optional_conflict
Fix `optional` detection conflict
2023-07-24 10:39:09 +02:00
Peter Lef
f172cbbd7d Minor readability change
To be consistent with the naming style in the previous loop.
2023-07-24 00:18:56 -04:00
Peter Lef
69402977bc Fix overwriting of pointer optionality 2023-07-24 00:18:16 -04:00
Robin Voetter
9743c9b1d3 Merge pull request #99 from lefp/optional-pointer-params
Nullable pointer parameters
2023-07-12 10:57:33 +02: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
086276bd05 Merge pull request #98 from antlilja/builtin-rework
Remove type param from cast builtins (Update to master)
2023-06-27 14:36:57 +02:00
antlilja
6c9133bc24 Remove type param from cast builtins 2023-06-27 13:09:34 +02:00
Robin Voetter
4f15927ba2 Merge pull request #97 from antlilja/master-update
Update intToFloat builtin to floatFromInt
2023-06-22 01:27:57 +02:00
antlilja
8a0be4f5de Update intToFloat builtin to floatFromInt 2023-06-22 00:32:12 +02:00
Robin Voetter
ab10325893 Merge pull request #96 from ttyyls/master
fix-readme-links
2023-06-21 09:12:13 +02:00
ttyyls
a4eb8399e0 fix-readme-links 2023-06-21 00:53:05 +01:00
Robin Voetter
03da126bc0 Merge pull request #95 from davidgm94/fix-readme-compile-error
Fix README compile error.
2023-06-19 21:03:28 +02:00
Robin Voetter
308dd180f0 Merge pull request #94 from davidgm94/master-update
keep up with master breaking changes
2023-06-19 20:52:58 +02:00
David Gonzalez Martin
0f757bfa34 Fix README compile error.
The byte slice required to be constant and it was giving a compile
error.
2023-06-19 12:51:03 -06:00
David Gonzalez Martin
c75e71333d keep up with master breaking changes 2023-06-19 12:32:52 -06:00
Robin Voetter
f6c751cdd3 Merge pull request #93 from Henrik-N/patch-1
Updated example "Manual generation with the package manager from buil…
2023-06-12 19:20:57 +02:00
Henrik Nilsson
3d98b8a273 Updated example "Manual generation with the package manager from build.zig" 2023-06-12 18:55:32 +02:00
Robin Voetter
ff48aa1581 Merge pull request #92 from CodesOtakuYT/master
use std.mem.sliceTo instead of indexOfScalar
2023-06-07 18:10:15 +02:00
CodesOtakuYT
de4ec3efa3 use std.mem.sliceTo instead of indexOfScalar 2023-06-07 17:08:27 +01:00
Robin Voetter
bbf9c886de Merge pull request #90 from CodesOtakuYT/patch-2
load the instance proc addr from vkb instead of the loader
2023-06-04 13:34:41 +02:00
Codotaku
21383ef259 load the instance proc addr from vkb instead of the loader
Am honestly not sure if this is objectively better, but I can imagine that it's cleaner to rely on GLFW proc only to load the vkb. then rely on the vkb for everything else after that.
Feedback is appreciated!
2023-06-03 23:46:05 +01:00
Robin Voetter
a795a6d5cf Merge pull request #89 from CodesOtakuYT/patch-1
Fix outdated README "generation from build.zig" instructions
2023-06-02 10:40:32 +02:00
Codotaku
97f5da4da6 Fix outdated README generation from build.zig instructions 2023-06-02 09:02:16 +01:00
Robin Voetter
7b0e3d5a9d Merge pull request #88 from Avokadoen/bool-to-u32
explicitly cast boolToInt in Wrapper
2023-05-26 19:24:43 +02:00
avokadoen
3094dc5e27 explicitly cast boolToInt in Wrapper
This resolves compile error with master zig
2023-05-26 13:17:57 +02:00
Robin Voetter
9ab420e0d7 Merge pull request #87 from Avokadoen/store-hash
Expose shader hash
2023-05-23 23:33:34 +02:00
avokadoen
9bb8e7b1f7 expose shader hash in Shader struct 2023-05-23 21:16:22 +02:00
Robin Voetter
d59005bab6 ci: update vk.zig artifact path 2023-04-17 22:15:59 +02:00
Robin Voetter
55e7dcf270 install vk.zig to prefix/src/ by default 2023-04-17 22:12:48 +02:00
Robin Voetter
303d06b3d8 Merge pull request #84 from d0miKuras/master
Fixed deprecated install step
2023-04-17 20:14:40 +02:00
Robin Voetter
8b452b9edd generate wrapper for command aliases
Instead of generating a Zig alias for aliased commands, actual wrappers
are now generated. This should make sure that extension commands, such as
vkCmdBeginRenderingKHR, can still be used on older Vulkan implementations.
2023-04-17 20:09:30 +02:00
Dominik Kurasbediani
17366388db Fixed deprecated install step 2023-04-15 18:14:28 +02:00
Robin Voetter
02939ff026 Merge pull request #82 from praschke/refresh-build
Update for zig build changes
2023-03-18 16:11:12 +01:00
praschke
2a796113e8 Update for zig build changes
- Step now holds the builder and some manifest/cache helpers
- cleaned up proxy names and remaining uses of `std.build`
- removed vicious lie from README
2023-03-18 12:26:59 +00:00
praschke
b4f7ead7e6 removed unnecessary run condition 2023-03-18 12:04:24 +00:00
Robin Voetter
40a7b871be Merge pull request #81 from antlilja/pub-vkgen
Export ShaderCompileStep and VkGenerateStep
2023-03-15 09:23:19 +01:00
antlilja
ab12ecc5d4 Remove ShaderStage from generator/index.zig
ShaderStage no longer exists but zig does not produce any compile error
because it isn't used anywhere.
2023-03-09 20:32:44 +01:00
antlilja
a893f0d880 Export shader and generate steps in build.zig
Export ShaderCompileStep and VkGenerateStep in build.zig in order to
support importing the build.zig file from other build.zig files using
vulkan-zig.
2023-03-09 20:29:19 +01:00
Robin Voetter
04105c3bb0 Merge pull request #80 from antlilja/addModule
Use new module API
2023-03-06 23:17:04 +01:00
antlilja
d8cfd033b1 Use new module API
The new module API now returns the created module as well as taking some
different parameters.
2023-03-06 23:15:16 +01: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
Robin Voetter
c801ac0d2e Revert "fix workflow"
This reverts commit ac035d5ebe.

vk.xml is the correct xml file, its the one from the vulkan repository.
2023-03-03 23:45:41 +01:00
Robin Voetter
075e29c8a1 Merge pull request #78 from antlilja/multi-for
Fixed code to conform to new multi-for syntax
2023-02-23 09:27:15 +01:00