Fix README compile error.

The byte slice required to be constant and it was giving a compile
error.
This commit is contained in:
David Gonzalez Martin
2023-06-19 12:51:03 -06:00
parent f6c751cdd3
commit 0f757bfa34

View File

@@ -59,7 +59,7 @@ There is also support for adding this project as a dependency through zig packag
And then in your build.zig file, you'll need to add a line like this to your build function: And then in your build.zig file, you'll need to add a line like this to your build function:
```zig ```zig
const vkzig_dep = b.dependency("vulkan_zig", .{ const vkzig_dep = b.dependency("vulkan_zig", .{
.registry = 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-zig", vkzig_bindings); exe.addModule("vulkan-zig", vkzig_bindings);