Commit Graph

524 Commits

Author SHA1 Message Date
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
antlilja
07b13e976f Made vulkan-zig conform to new multi for syntax 2023-02-22 22:34:49 +01:00
Robin Voetter
e83a035210 Merge pull request #79 from antlilja/shader-path
Fixed bug in shader output path
2023-02-20 20:49:28 +01:00
antlilja
27c38931db Fixed bug in shader output path
The build root and cache root paths were being concatanated which
resulted in the wrong path being calculated for the shaders.
2023-02-20 15:18:44 +01:00
Robin Voetter
c887a0fcc4 Merge pull request #77 from InKryption/master
build system updates
2023-02-19 00:24:07 +01:00
InKryption
ac035d5ebe fix workflow 2023-02-18 02:29:25 +01:00
InKryption
9a4b43e15d Update README 2023-02-18 02:26:23 +01:00
InKryption
886b75272f improve option description 2023-02-18 02:00:12 +01:00
InKryption
71403a013b remove configurable file name from GenerateStep & don't use path as part of cache hash 2023-02-18 01:59:40 +01:00
InKryption
c294b849d2 make build.zig friendly to the zig package manager 2023-02-16 03:09:56 +01:00
InKryption
ef75aa0fd6 Update to latest build system changes; use caching API in GenerateStep 2023-02-16 02:21:28 +01:00
Robin Voetter
09565850a9 Explicitly pass null to p_wait_dst_stage_mask in SubmitInfo
It seems that the optional-ness of this field was changed in a recent-ish
vk.xml update.
2023-02-11 13:06:42 +01:00
Robin Voetter
1070100e2e CI: Update to ubuntu 22.04 2023-02-11 09:58:37 +01:00
Robin Voetter
3829d2eb99 CI: Always use latest Vulkan SDK 2023-02-11 09:58:06 +01:00
Robin Voetter
010160107e CI: Bump setup-zig to 2.0.1 2023-02-11 09:54:53 +01:00
Robin Voetter
c203897352 Merge pull request #76 from Avokadoen/fix-build
update build to use new build API
2023-02-08 20:28:40 +01:00
avokadoen
b09e14a649 update build to use new build API 2023-02-08 20:23:21 +01:00
Robin Voetter
782d75ac4c Merge pull request #73 from ashpil/more-defaults
More defaults for struct fields
2023-02-05 20:33:16 +01:00
ashpil
9d1ffe0fb3 no longer explicitly initialize fields which have defaults in example 2023-02-05 13:33:18 -05:00
ashpil
0873a35392 provide defaults for struct fields vulkan considers optional 2023-02-05 13:33:13 -05:00
Robin Voetter
ddc4ae1938 Merge pull request #74 from Cold-Bytes-Games/update-to-build-system-changes
Update to build system changes
2023-02-04 22:58:36 +01:00