all: remove support for stage1
With almost all tests/examples working on all platforms now with the new compiler, https://github.com/hexops/mach/issues/180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
771275a553
commit
0b57c0fdf3
2 changed files with 3 additions and 9 deletions
|
@ -153,7 +153,7 @@ const builtin = @import("builtin");
|
||||||
/// Generic function pointer used for returning client API function pointers.
|
/// Generic function pointer used for returning client API function pointers.
|
||||||
///
|
///
|
||||||
/// see also: context_glext, glfwGetProcAddress
|
/// see also: context_glext, glfwGetProcAddress
|
||||||
pub const GLProc = if (builtin.zig_backend == .stage1 or builtin.zig_backend == .other) fn () callconv(.C) void else *const fn () callconv(.C) void;
|
pub const GLProc = *const fn () callconv(.C) void;
|
||||||
|
|
||||||
/// Returns the address of the specified function for the current context.
|
/// Returns the address of the specified function for the current context.
|
||||||
///
|
///
|
||||||
|
|
|
@ -34,10 +34,7 @@ pub fn initVulkanLoader(loader_function: ?VKGetInstanceProcAddr) void {
|
||||||
c.glfwInitVulkanLoader(loader_function orelse null);
|
c.glfwInitVulkanLoader(loader_function orelse null);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const VKGetInstanceProcAddr = if (@import("builtin").zig_backend == .stage1)
|
pub const VKGetInstanceProcAddr = *const fn (vk_instance: c.VkInstance, name: [*c]const u8) callconv(.C) ?VKProc;
|
||||||
fn (vk_instance: c.VkInstance, name: [*c]const u8) callconv(.C) ?VKProc
|
|
||||||
else
|
|
||||||
*const fn (vk_instance: c.VkInstance, name: [*c]const u8) callconv(.C) ?VKProc;
|
|
||||||
|
|
||||||
/// Returns whether the Vulkan loader and an ICD have been found.
|
/// Returns whether the Vulkan loader and an ICD have been found.
|
||||||
///
|
///
|
||||||
|
@ -106,10 +103,7 @@ pub inline fn getRequiredInstanceExtensions() error{APIUnavailable}![][*:0]const
|
||||||
/// Generic function pointer used for returning Vulkan API function pointers.
|
/// Generic function pointer used for returning Vulkan API function pointers.
|
||||||
///
|
///
|
||||||
/// see also: vulkan_proc, glfw.getInstanceProcAddress
|
/// see also: vulkan_proc, glfw.getInstanceProcAddress
|
||||||
pub const VKProc = if (@import("builtin").zig_backend == .stage1)
|
pub const VKProc = *const fn () callconv(.C) void;
|
||||||
fn () callconv(.C) void
|
|
||||||
else
|
|
||||||
*const fn () callconv(.C) void;
|
|
||||||
|
|
||||||
/// Returns the address of the specified Vulkan instance function.
|
/// Returns the address of the specified Vulkan instance function.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue