From 5b7380eea014dce11587597d44681640a3a3583b Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sun, 26 Apr 2026 03:58:59 +0200 Subject: [PATCH] yes --- src/Module.zig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Module.zig b/src/Module.zig index 3558139..7d96fe3 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -189,8 +189,14 @@ fn applyDecorations(self: *Self) ModuleError!void { } }, .Output => { - if (decoration.rtype == .Location) - self.output_locations[decoration.literal_1] = @intCast(id); + switch (decoration.rtype) { + .BuiltIn => self.builtins.put( + std.enums.fromInt(spv.SpvBuiltIn, decoration.literal_1) orelse return ModuleError.InvalidSpirV, + @intCast(id), + ), + .Location => self.output_locations[decoration.literal_1] = @intCast(id), + else => {}, + } }, .StorageBuffer, .Uniform, .UniformConstant => { switch (decoration.rtype) {