Commit Graph

49 Commits

Author SHA1 Message Date
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
8391911683 actually run the tests 2024-04-13 23:18:44 +02:00
sammy j
57ad4d5e16 fixing up vulkan-zig for new build design 2024-01-02 18:28:11 -08:00
Robin Voetter
55e7dcf270 install vk.zig to prefix/src/ by default 2023-04-17 22:12:48 +02:00
Dominik Kurasbediani
17366388db Fixed deprecated install step 2023-04-15 18:14:28 +02: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
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
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
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
avokadoen
b09e14a649 update build to use new build API 2023-02-08 20:23:21 +01:00
mlarouche
dee86a06cb Update build script to latest Build 2023-02-04 16:53:52 -05:00
ashpil
235edc8c67 remove a couple glslc specific assumptions 2023-01-20 22:52:41 -05:00
Robin Voetter
08dc9f508c standardize names for step creation and obtaining packages
stdlib style is to use `create` for step creation and `getPackage`/`getSource`
to provide generated sources as package/file.
2022-12-30 00:43:29 +01:00
Robin Voetter
f7a4e4346e Improve ShaderCreateStep to work around cache issues 2022-12-30 00:31:48 +01:00
Robin Voetter
d9377c4c70 use addShaderBase64 in build.zig for now 2022-12-23 00:10:44 +01:00
a-day-old-bagel
e798643829 Added option to add shaders as base64 instead of embedding file 2022-12-22 15:00:22 -07:00
Robin Voetter
d1ddf52e82 test that refs all decls 2022-10-07 01:37:38 +02:00
Robin Voetter
80a201f89a fix alignment for shader binary 2022-09-24 00:40:17 +02:00
Vivianne Langdon
d96e32eb6e Add support for multiple entrypoints and a custom output file 2022-07-20 22:05:24 -07:00
Aksel Hjerpbakk
7fdaece86c update to latest zig 2022-05-28 15:30:07 +02:00
ashpil
e2268a7eb4 makes shader build comment output directory user-specifiable 2021-12-29 21:45:12 +03:00
Robin Voetter
79d901a3e0 Fix a whole bunch of issues exposed by ziglang/zig#9191
This also includes a workaround for the fact that @"type" refers to the builtin
and not to a variable called "type". See ziglang/zig#2897.
2021-06-24 02:11:36 +02:00
Robin Voetter
de0a048f45 Fix another vk.xml moment 2021-06-14 20:49:09 +02:00
Robin Voetter
6f965fead0 Update to new build API 2021-06-12 13:44:48 +02:00
Robin Voetter
e7d6f9f012 Use linkLibC instead of linkSystemLibrary to link libc 2021-02-12 14:42:04 +01:00
Robin Voetter
55e8551cef Adapt to new {s} syntax 2021-01-03 16:18:46 +01:00
Robin Voetter
b48fe074f5 Add CLI interface 2020-11-25 15:29:06 +01:00
Robin Voetter
9fc2ddbdf7 Add option to override vk.xml path 2020-09-27 19:04:41 +02:00
Robin Voetter
7888df1bd3 Attempt to fix vulkan-zig on windows: Make dispatchers accept anytype as loader, properly escape paths in build.zig 2020-09-24 13:41:58 +02:00
Robin Voetter
c16d70f210 Promote using std.build.Pkg to canonicalize package name 2020-08-10 01:22:32 +02:00
Robin Voetter
29de177c05 Rename example to triangle 2020-07-05 18:25:50 +02:00
Robin Voetter
e217cbab77 Pipeline(Layout) & render pass creation 2020-07-04 16:46:38 +02:00
Robin Voetter
0be71d1614 Shader compilation utility 2020-07-04 04:19:32 +02:00
Robin Voetter
e9f286a5d4 Vulkan generate step 2020-07-04 03:00:54 +02:00
Robin Voetter
cebecfe197 Restructure to allow for other binding generators in the future 2020-07-03 16:40:49 +02:00
Robin Voetter
c6c33d3539 Add run step for example 2020-07-03 02:48:14 +02:00
Robin Voetter
1ebed09413 Graphics context for example 2020-07-02 04:01:59 +02:00
Robin Voetter
f0813e99d2 Basic setup for examples 2020-07-01 03:07:55 +02:00
Robin Voetter
a5dbb555ab Feature parsing 2020-06-11 18:10:32 +02:00
Robin Voetter
b49c64862e Dingen 2019-10-25 22:45:57 +02:00
Robin Voetter
23ed9e610a XML unescape iterator 2019-10-14 01:58:45 +02:00
Robin Voetter
e5ca4a90f1 Initial commit 2019-10-13 00:52:35 +02:00