Function Prototype
vkGetDisplayPlaneCapabilities2KHR
Query capabilities of a mode and plane combination
To query the capabilities of a given mode and plane combination, call:
VkResult vkGetDisplayPlaneCapabilities2KHR(
VkPhysicalDevice physicalDevice,
const VkDisplayPlaneInfo2KHR* pDisplayPlaneInfo,
VkDisplayPlaneCapabilities2KHR* pCapabilities);
pub fn get_display_plane_capabilities2_khr(
physical_device: vk::PhysicalDevice,
p_display_plane_info: *const vk::DisplayPlaneInfo2KHR,
p_capabilities: *mut vk::DisplayPlaneCapabilities2KHR,
) -> vk::Result;
physicalDeviceis the physical device associated withpDisplayPlaneInfo.pDisplayPlaneInfois a pointer to a VkDisplayPlaneInfo2KHR structure describing the plane and mode.pCapabilitiesis a pointer to a VkDisplayPlaneCapabilities2KHR structure in which the capabilities are returned.
vkGetDisplayPlaneCapabilities2KHR behaves similarly to
vkGetDisplayPlaneCapabilitiesKHR, with the ability to specify extended
inputs via chained input structures, and to return extended information via
chained output structures.
Valid Usage (Implicit)
VUID-vkGetDisplayPlaneCapabilities2KHR-physicalDevice-parameter
physicalDevice must be a valid VkPhysicalDevice handle
VUID-vkGetDisplayPlaneCapabilities2KHR-pDisplayPlaneInfo-parameter
pDisplayPlaneInfo must be a valid pointer to a valid VkDisplayPlaneInfo2KHR structure
VUID-vkGetDisplayPlaneCapabilities2KHR-pCapabilities-parameter
pCapabilities must be a valid pointer to a VkDisplayPlaneCapabilities2KHR structure
Type
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED