forked from mirror/vulkan-zig
Fix outdated README generation from build.zig instructions
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user