forked from mirror/vulkan-zig
fix alignment for shader binary
This commit is contained in:
@@ -59,9 +59,9 @@ pub const ResourceGenStep = struct {
|
||||
const shader_out_path = self.shader_step.add(source, .{});
|
||||
var writer = self.resources.writer();
|
||||
|
||||
writer.print("pub const {s} = @embedFile(\"", .{name}) catch unreachable;
|
||||
writer.print("pub const {s} align(@alignOf(u32)) = @embedFile(\"", .{name}) catch unreachable;
|
||||
renderPath(shader_out_path, writer);
|
||||
writer.writeAll("\");\n") catch unreachable;
|
||||
writer.writeAll("\").*;\n") catch unreachable;
|
||||
}
|
||||
|
||||
fn make(step: *Step) !void {
|
||||
|
||||
Reference in New Issue
Block a user