From a86c939857f494a1d8f5749db1a10f008cd40ef3 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sun, 17 Sep 2023 14:00:49 +0200 Subject: [PATCH] spirv: also add Float64 by default --- src/link/SpirV.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig index 7ad4c846d4..d3906a13d7 100644 --- a/src/link/SpirV.zig +++ b/src/link/SpirV.zig @@ -217,7 +217,7 @@ pub fn flushModule(self: *SpirV, comp: *Compilation, prog_node: *std.Progress.No 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, .GenericPointer }, + .opencl => &.{ .Kernel, .Addresses, .Int8, .Int16, .Int64, .Float64, .GenericPointer }, .glsl450 => &.{.Shader}, .vulkan => &.{.Shader}, else => unreachable, // TODO