Merge pull request #89 from CodesOtakuYT/patch-1

Fix outdated README "generation from build.zig" instructions
This commit is contained in:
Robin Voetter
2023-06-02 10:40:32 +02:00
committed by GitHub

View File

@@ -34,7 +34,7 @@ pub fn build(b: *Builder) void {
const exe = b.addExecutable("my-executable", "src/main.zig");
// Create a step that generates vk.zig (stored in zig-cache) from the provided vulkan registry.
const gen = vkgen.VkGenerateStep.create(b, "path/to/vk.xml", "vk.zig");
const gen = vkgen.VkGenerateStep.create(b, "path/to/vk.xml");
// Add the generated file as package to the final executable
exe.addModule("vulkan", gen.getModule());