authorgravatar for 170803884+DialecticalMaterialist@users.noreply.github.comDialecticalMaterialist <170803884+DialecticalMaterialist@users.noreply.github.com> 2025-08-02 23:43:17+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-03 10:39:07+02:00
log616e69c80745cdc872b1db5ad63b919d82d9e9cb
treedfda5b97b88173e41676f27a70b763bbc28e2298
parent4d1010d36c69a88a94494f155ba22490d562e3e8

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 files changed, 1 insertions(+), 1 deletions(-)

src/Zcu.zig+1-1
......@@ -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 };