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.
This commit is contained in:
committed by
Alex Rønne Petersen
parent
4d1010d36c
commit
616e69c807
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user