Commit 616e69c807

DialecticalMaterialist <170803884+DialecticalMaterialist@users.noreply.github.com>
2025-08-02 23:43:17
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.
1 parent 4d1010d
Changed files (1)
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,
         },
     };