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.
This commit is contained in:
Robin Voetter
2024-04-28 22:22:01 +02:00
parent 1fdb930ae3
commit 7ac69f90ef
5 changed files with 108 additions and 86 deletions

14
examples/build.zig.zon Normal file
View File

@@ -0,0 +1,14 @@
.{
.name = "vulkan-zig-examples",
.version = "0.1.0",
.dependencies = .{
.vulkan_zig = .{
.path = "..",
},
.vulkan_headers = .{
.url = "https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.3.283.tar.gz",
.hash = "1220a7e73d72a0d56bc2a65f9d8999a7c019e42260a0744c408d1cded111bc205e10",
},
},
.paths = .{""},
}