diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-10 15:25:41 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-12 08:59:47 +0200 |
| commit | eb4539a27d72defc2f90a0b164a5d7f27df79ea7 (patch) | |
| tree | efe3019b3c60c1b0199c689fb9ff158a473b1383 /src/link | |
| parent | 15a3ee19795dd9807107c2a45fa328b00e9edd10 (diff) | |
| download | zig-eb4539a27d72defc2f90a0b164a5d7f27df79ea7.tar.gz zig-eb4539a27d72defc2f90a0b164a5d7f27df79ea7.zip | |
std.Target: Rename glsl450 Arch tag to opengl.
Versions can simply use the normal version range mechanism, or alternatively an
Abi tag if that makes more sense. For now, we only care about 4.5 anyway.
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/SpirV.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig index e97c80c3fe..57e69ed860 100644 --- a/src/link/SpirV.zig +++ b/src/link/SpirV.zig @@ -85,7 +85,7 @@ pub fn createEmpty( } switch (target.os.tag) { - .opencl, .glsl450, .vulkan => {}, + .opencl, .opengl, .vulkan => {}, else => unreachable, // Caught by Compilation.Config.resolve. } @@ -290,7 +290,7 @@ fn writeCapabilities(spv: *SpvModule, target: std.Target) !void { // TODO: Integrate with a hypothetical feature system const caps: []const spec.Capability = switch (target.os.tag) { .opencl => &.{ .Kernel, .Addresses, .Int8, .Int16, .Int64, .Float64, .Float16, .Vector16, .GenericPointer }, - .glsl450 => &.{.Shader}, + .opengl => &.{.Shader}, .vulkan => &.{ .Shader, .VariablePointersStorageBuffer, .Int8, .Int16, .Int64, .Float64, .Float16 }, else => unreachable, // TODO }; @@ -311,13 +311,13 @@ fn writeMemoryModel(spv: *SpvModule, target: std.Target) !void { .spirv64 => spec.AddressingModel.Physical64, else => unreachable, // TODO }, - .glsl450, .vulkan => spec.AddressingModel.Logical, + .opengl, .vulkan => spec.AddressingModel.Logical, else => unreachable, // TODO }; const memory_model: spec.MemoryModel = switch (target.os.tag) { .opencl => .OpenCL, - .glsl450 => .GLSL450, + .opengl => .GLSL450, .vulkan => .GLSL450, else => unreachable, }; |
