forked from mirror/vulkan-zig
install vk.zig to prefix/src/ by default
This commit is contained in:
@@ -50,6 +50,9 @@ pub fn build(b: *std.Build) void {
|
|||||||
const gen = VkGenerateStep.create(b, example_registry);
|
const gen = VkGenerateStep.create(b, example_registry);
|
||||||
triangle_exe.addModule("vulkan", gen.getModule());
|
triangle_exe.addModule("vulkan", gen.getModule());
|
||||||
|
|
||||||
|
const vk_zig_install_step = b.addInstallFile(gen.getSource(), "src/vk.zig");
|
||||||
|
b.getInstallStep().dependOn(&vk_zig_install_step.step);
|
||||||
|
|
||||||
const shaders = ShaderCompileStep.create(
|
const shaders = ShaderCompileStep.create(
|
||||||
b,
|
b,
|
||||||
&[_][]const u8{ "glslc", "--target-env=vulkan1.2" },
|
&[_][]const u8{ "glslc", "--target-env=vulkan1.2" },
|
||||||
|
|||||||
Reference in New Issue
Block a user