mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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:
parent
4d1010d36c
commit
616e69c807
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue