Update to new usingnamespace semantics

This commit is contained in:
Robin Voetter
2021-09-02 16:16:35 +02:00
parent 07e530719b
commit 9e40721655

View File

@@ -4,10 +4,11 @@ pub usingnamespace @cImport({
}); });
const vk = @import("vulkan"); const vk = @import("vulkan");
const c = @This();
// usually the GLFW vulkan functions are exported if Vulkan is included, // usually the GLFW vulkan functions are exported if Vulkan is included,
// but since thats not the case here, they are manually imported. // but since thats not the case here, they are manually imported.
pub extern fn glfwGetInstanceProcAddress(instance: vk.Instance, procname: [*:0]const u8) vk.PfnVoidFunction; pub extern fn glfwGetInstanceProcAddress(instance: vk.Instance, procname: [*:0]const u8) vk.PfnVoidFunction;
pub extern fn glfwGetPhysicalDevicePresentationSupport(instance: vk.Instance, pdev: vk.PhysicalDevice, queuefamily: u32) c_int; pub extern fn glfwGetPhysicalDevicePresentationSupport(instance: vk.Instance, pdev: vk.PhysicalDevice, queuefamily: u32) c_int;
pub extern fn glfwCreateWindowSurface(instance: vk.Instance, window: *GLFWwindow, allocation_callbacks: ?*const vk.AllocationCallbacks, surface: *vk.SurfaceKHR) vk.Result; pub extern fn glfwCreateWindowSurface(instance: vk.Instance, window: *c.GLFWwindow, allocation_callbacks: ?*const vk.AllocationCallbacks, surface: *vk.SurfaceKHR) vk.Result;