Add support for multiple entrypoints and a custom output file

This commit is contained in:
Vivianne Langdon
2022-07-20 22:05:24 -07:00
parent fdf43d846a
commit d96e32eb6e
3 changed files with 48 additions and 12 deletions

View File

@@ -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;