[go: up one dir, main page]

glfwVulkanSupported

Function glfwVulkanSupported 

Source
pub unsafe extern "C" fn glfwVulkanSupported() -> i32
Expand description

@brief Returns whether the Vulkan loader and an ICD have been found.

This function returns whether the Vulkan loader and any minimally functional ICD have been found.

The availability of a Vulkan loader and even an ICD does not by itself guarantee that surface creation or even instance creation is possible. Call @ref glfwGetRequiredInstanceExtensions to check whether the extensions necessary for Vulkan surface creation are available and @ref glfwGetPhysicalDevicePresentationSupport to check whether a queue family of a physical device supports image presentation.

@return GLFW_TRUE if Vulkan is minimally available, or GLFW_FALSE otherwise.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread.

@sa @ref vulkan_support

@since Added in version 3.2.

@ingroup vulkan