Description
Currently my program runs on MSVC without any problems but on MinGW glfwCreateWindowSurface(...) strangely throws an error that it's missing the VK_KHR_win32_surface extension.
Surface Code
void createSurface() {
if (glfwCreateWindowSurface(instance, window, nullptr, &surface) != VK_SUCCESS) {
throw std::runtime_error("failed to create window surface!");
}
}
Additional Info
vkGetInstanceProcAddr(..., "vkCreateWin32SurfaceKHR")andglfwGetInstanceProcAddress(..., "vkCreateWin32SurfaceKHR"): return a non-null function pointerglfwGetError(...): returns65542andWin32: Vulkan instance missing VK_KHR_win32_surface extensionvkEnumerateInstanceExtensionProperties(...): lists theVK_KHR_win32_surfaceextensionglfwCreateWindowSurface(...): returnsVK_ERROR_EXTENSION_NOT_PRESENTglfwVulkanSupported(): returns 1- It should be the same code as https://vulkan-tutorial.com/code/26_depth_buffering.cpp