aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorAli Cheraghi <alichraghi@proton.me>2025-05-11 15:45:44 +0330
committerAli Cheraghi <alichraghi@proton.me>2025-05-21 13:01:21 +0330
commit8fa54eb7987bdb8138c625f03aa9fb91239dba48 (patch)
tree4565cd41420208f0da774c967dc0af0074a504cc /src/codegen/spirv.zig
parent9209f4b16acc4453f89a06caabf54691f6253f62 (diff)
downloadzig-8fa54eb7987bdb8138c625f03aa9fb91239dba48.tar.gz
zig-8fa54eb7987bdb8138c625f03aa9fb91239dba48.zip
spirv: error when execution mode is set more than once
Diffstat (limited to 'src/codegen/spirv.zig')
-rw-r--r--src/codegen/spirv.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index 99f948e789..b2ab76e2c7 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -2870,7 +2870,7 @@ const NavGen = struct {
};
try self.spv.declareDeclDeps(spv_decl_index, decl_deps.items);
- try self.spv.declareEntryPoint(spv_decl_index, test_name, execution_mode);
+ try self.spv.declareEntryPoint(spv_decl_index, test_name, execution_mode, null);
}
fn genNav(self: *NavGen, do_codegen: bool) !void {
@@ -2976,10 +2976,6 @@ const NavGen = struct {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .Position } });
} else if (nav.fqn.eqlSlice("point_size", ip)) {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .PointSize } });
- } else if (nav.fqn.eqlSlice("vertex_id", ip)) {
- try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .VertexId } });
- } else if (nav.fqn.eqlSlice("instance_id", ip)) {
- try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .InstanceId } });
} else if (nav.fqn.eqlSlice("invocation_id", ip)) {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .InvocationId } });
} else if (nav.fqn.eqlSlice("frag_coord", ip)) {
@@ -2990,8 +2986,6 @@ const NavGen = struct {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .FrontFacing } });
} else if (nav.fqn.eqlSlice("sample_mask", ip)) {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .SampleMask } });
- } else if (nav.fqn.eqlSlice("sample_mask", ip)) {
- try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .SampleMask } });
} else if (nav.fqn.eqlSlice("frag_depth", ip)) {
try self.spv.decorate(result_id, .{ .BuiltIn = .{ .built_in = .FragDepth } });
} else if (nav.fqn.eqlSlice("num_workgroups", ip)) {