forked from mirror/vulkan-zig
Add support for multiple entrypoints and a custom output file
This commit is contained in:
@@ -56,7 +56,7 @@ pub const ResourceGenStep = struct {
|
||||
}
|
||||
|
||||
pub fn addShader(self: *ResourceGenStep, name: []const u8, source: []const u8) void {
|
||||
const shader_out_path = self.shader_step.add(source);
|
||||
const shader_out_path = self.shader_step.add(source, .{});
|
||||
var writer = self.resources.writer();
|
||||
|
||||
writer.print("pub const {s} = @embedFile(\"", .{name}) catch unreachable;
|
||||
|
||||
Reference in New Issue
Block a user