diff --git a/Setup/mock_include/vulkan/vulkan.h b/Setup/mock_include/vulkan/vulkan.h index b2ef5f2..49e6a9f 100644 --- a/Setup/mock_include/vulkan/vulkan.h +++ b/Setup/mock_include/vulkan/vulkan.h @@ -1,9 +1,7 @@ #define VK_VERSION_1_0 -typedef void PFN_vkGetInstanceProcAddr; -typedef void VkInstance; -typedef void VkInstance; -typedef void VkPhysicalDevice; -typedef void VkResult; -typedef void VkInstance; -typedef void VkAllocationCallbacks; -typedef void VkSurfaceKHR; +typedef void* PFN_vkGetInstanceProcAddr; +typedef void* VkInstance; +typedef void* VkPhysicalDevice; +typedef int VkResult; +typedef struct VkAllocationCallbacks VkAllocationCallbacks; +typedef unsigned long long VkSurfaceKHR; diff --git a/src/Glfw.bf b/src/Glfw.bf index b7e9e18..6994593 100644 --- a/src/Glfw.bf +++ b/src/Glfw.bf @@ -2431,7 +2431,7 @@ public function void Joystickfun(c_int jid, c_int event); * * @ingroup init */ -[LinkName("glfwInitVulkanLoader")] public static extern void InitVulkanLoader(c_int loader); +[LinkName("glfwInitVulkanLoader")] public static extern void InitVulkanLoader(PFN_vkGetInstanceProcAddr loader); /*VK_VERSION_1_0*/ @@ -6496,7 +6496,7 @@ public function void Joystickfun(c_int jid, c_int event); * * @ingroup vulkan */ -[LinkName("glfwGetInstanceProcAddress")] public static extern Vkproc GetInstanceProcAddress(c_int instance, c_char* procname); +[LinkName("glfwGetInstanceProcAddress")] public static extern Vkproc GetInstanceProcAddress(VkInstance instance, c_char* procname); /*! @brief Returns whether the specified queue family can present images. * @@ -6533,7 +6533,7 @@ public function void Joystickfun(c_int jid, c_int event); * * @ingroup vulkan */ -[LinkName("glfwGetPhysicalDevicePresentationSupport")] public static extern Bool GetPhysicalDevicePresentationSupport(c_int instance, c_int device, uint32 queuefamily); +[LinkName("glfwGetPhysicalDevicePresentationSupport")] public static extern Bool GetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32 queuefamily); /*! @brief Creates a Vulkan surface for the specified window. * @@ -6603,7 +6603,7 @@ public function void Joystickfun(c_int jid, c_int event); * * @ingroup vulkan */ -[LinkName("glfwCreateWindowSurface")] public static extern VkResult CreateWindowSurface(c_int instance, Window* window, VkAllocationCallbacks* allocator, out VkSurfaceKHR surface); +[LinkName("glfwCreateWindowSurface")] public static extern VkResult CreateWindowSurface(VkInstance instance, Window* window, VkAllocationCallbacks* allocator, out VkSurfaceKHR surface); } static