diff options
| author | Ali Cheraghi <alichraghi@proton.me> | 2025-05-11 15:45:44 +0330 |
|---|---|---|
| committer | Ali Cheraghi <alichraghi@proton.me> | 2025-05-21 13:01:21 +0330 |
| commit | 8fa54eb7987bdb8138c625f03aa9fb91239dba48 (patch) | |
| tree | 4565cd41420208f0da774c967dc0af0074a504cc /src/codegen/spirv.zig | |
| parent | 9209f4b16acc4453f89a06caabf54691f6253f62 (diff) | |
| download | zig-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.zig | 8 |
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)) { |
