glfwGetPhysicalDevicePresentationSupport

Returns whether the specified queue family can present images.

This function returns whether the specified queue family of the specified physical device supports presentation to the platform GLFW was built for.

If Vulkan or the required window surface creation instance extensions are not available on the machine, or if the specified instance was not created with the required extensions, this function returns GLFW_FALSE and generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported to check whether Vulkan is at least minimally available and @ref glfwGetRequiredInstanceExtensions to check what instance extensions are required.

version(VK_VERSION_1_0)
extern (C) @nogc nothrow __gshared
int
glfwGetPhysicalDevicePresentationSupport
(
VkInstance instance
,
VkPhysicalDevice device
,)

Parameters

instance VkInstance

The instance that the physical device belongs to.

device VkPhysicalDevice

The physical device that the queue family belongs to.

queuefamily uint

The index of the queue family to query.

Return Value

Type: int

GLFW_TRUE if the queue family supports presentation, or GLFW_FALSE otherwise.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR.

@remark @macos This function currently always returns GLFW_TRUE, as the VK_MVK_macos_surface extension does not provide a vkGetPhysicalDevice*PresentationSupport type function.

Thread Safety

This function may be called from any thread. For synchronization details of Vulkan objects, see the Vulkan specification.

@sa @ref vulkan_present

Meta

Since

Added in version 3.2.

Ingroup: vulkan