commit 616e69c80745cdc872b1db5ad63b919d82d9e9cb (tree)
parent 4d1010d36c69a88a94494f155ba22490d562e3e8
Author: DialecticalMaterialist <170803884+DialecticalMaterialist@users.noreply.github.com>
Date: Sat, 2 Aug 2025 23:43:17 +0200
OpenGL SPIR-V support
The support was already there but somebody forgot to allow to use the
calling conventions spirv_fragment and spirv_vertex when having opengl
as os tag.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Zcu.zig b/src/Zcu.zig
@@ -4510,7 +4510,7 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu
},
.stage2_spirv => switch (cc) {
.spirv_device, .spirv_kernel => true,
- .spirv_fragment, .spirv_vertex => target.os.tag == .vulkan,
+ .spirv_fragment, .spirv_vertex => target.os.tag == .vulkan or target.os.tag == .opengl,
else => false,
},
};