Skip to content

Commit 616e69c

Browse files
DialecticalMaterialistalexrp
authored andcommitted
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 commit 616e69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Zcu.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4510,7 +4510,7 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu
45104510
},
45114511
.stage2_spirv => switch (cc) {
45124512
.spirv_device, .spirv_kernel => true,
4513-
.spirv_fragment, .spirv_vertex => target.os.tag == .vulkan,
4513+
.spirv_fragment, .spirv_vertex => target.os.tag == .vulkan or target.os.tag == .opengl,
45144514
else => false,
45154515
},
45164516
};

0 commit comments

Comments
 (0)