yes
This commit is contained in:
+8
-2
@@ -189,8 +189,14 @@ fn applyDecorations(self: *Self) ModuleError!void {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
.Output => {
|
.Output => {
|
||||||
if (decoration.rtype == .Location)
|
switch (decoration.rtype) {
|
||||||
self.output_locations[decoration.literal_1] = @intCast(id);
|
.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 => {
|
.StorageBuffer, .Uniform, .UniformConstant => {
|
||||||
switch (decoration.rtype) {
|
switch (decoration.rtype) {
|
||||||
|
|||||||
Reference in New Issue
Block a user