Merge pull request #155 from MilkywayPirate/patch-1

Update README.md
This commit is contained in:
Robin Voetter
2024-08-12 09:44:44 +02:00
committed by GitHub

View File

@@ -54,7 +54,7 @@ const vkzig_dep = b.dependency("vulkan_zig", .{
.registry = @as([]const u8, b.pathFromRoot("path/to/vk.xml")), .registry = @as([]const u8, b.pathFromRoot("path/to/vk.xml")),
}); });
const vkzig_bindings = vkzig_dep.module("vulkan-zig"); const vkzig_bindings = vkzig_dep.module("vulkan-zig");
exe.addModule("vulkan", vkzig_bindings); exe.root_module.addImport("vulkan", vkzig_bindings);
``` ```
That will allow you to `@import("vulkan")` in your executable's source. That will allow you to `@import("vulkan")` in your executable's source.