fixing up vulkan-zig for new build design

This commit is contained in:
sammy j
2024-01-02 18:28:11 -08:00
parent 27d9b028eb
commit 57ad4d5e16
4 changed files with 34 additions and 22 deletions

View File

@@ -99,12 +99,12 @@ pub const ShaderCompileStep = struct {
/// Returns the shaders module with name.
pub fn getModule(self: *ShaderCompileStep) *Build.Module {
return self.step.owner.createModule(.{
.source_file = self.getSource(),
.root_source_file = self.getSource(),
});
}
/// Returns the file source for the generated shader resource code.
pub fn getSource(self: *ShaderCompileStep) Build.FileSource {
pub fn getSource(self: *ShaderCompileStep) Build.LazyPath {
return .{ .generated = &self.generated_file };
}