Merge pull request #50 from viviicat/multi-entrypoints

Add support for multiple entrypoints, specifying stage, and a custom output file for shader compilation
This commit is contained in:
Robin Voetter
2022-08-20 12:13:44 +02:00
parent fe786c1be7
commit efa1a714a8
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;