docs: Fixed compilation error in README.md example

This commit is contained in:
V-Fries
2024-10-16 07:21:42 +02:00
parent 06dae6c920
commit 6268a6fec4

View File

@@ -83,7 +83,7 @@ const vk_gen = b.dependency("vulkan_zig", .{}).artifact("vulkan-zig-generator");
// Set up a run step to generate the bindings // Set up a run step to generate the bindings
const vk_generate_cmd = b.addRunArtifact(vk_gen); const vk_generate_cmd = b.addRunArtifact(vk_gen);
// Pass the registry to the generator // Pass the registry to the generator
generate_cmd.addArg(registry); vk_generate_cmd.addFileArg(registry);
// Create a module from the generator's output... // Create a module from the generator's output...
const vulkan_zig = b.addModule("vulkan-zig", .{ const vulkan_zig = b.addModule("vulkan-zig", .{
.root_source_file = vk_generate_cmd.addOutputFileArg("vk.zig"), .root_source_file = vk_generate_cmd.addOutputFileArg("vk.zig"),