authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-09-17 14:00:49+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-23 12:36:56-07:00
loga86c939857f494a1d8f5749db1a10f008cd40ef3
tree5aa5de0673791be8a048856260a6f855b3b29753
parentf16d1603ab199b6e605c5e83f2edaebcf89d5512

spirv: also add Float64 by default


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/SpirV.zig+1-1
...@@ -217,7 +217,7 @@ pub fn flushModule(self: *SpirV, comp: *Compilation, prog_node: *std.Progress.No...@@ -217,7 +217,7 @@ pub fn flushModule(self: *SpirV, comp: *Compilation, prog_node: *std.Progress.No
217fn writeCapabilities(spv: *SpvModule, target: std.Target) !void {217fn writeCapabilities(spv: *SpvModule, target: std.Target) !void {
218 // TODO: Integrate with a hypothetical feature system218 // TODO: Integrate with a hypothetical feature system
219 const caps: []const spec.Capability = switch (target.os.tag) {219 const caps: []const spec.Capability = switch (target.os.tag) {
220 .opencl => &.{ .Kernel, .Addresses, .Int8, .Int16, .Int64, .GenericPointer },220 .opencl => &.{ .Kernel, .Addresses, .Int8, .Int16, .Int64, .Float64, .GenericPointer },
221 .glsl450 => &.{.Shader},221 .glsl450 => &.{.Shader},
222 .vulkan => &.{.Shader},222 .vulkan => &.{.Shader},
223 else => unreachable, // TODO223 else => unreachable, // TODO