Structures
VkSharedPresentSurfaceCapabilities2KHR
Structure describing capabilities of a surface for shared presentation
The VkSharedPresentSurfaceCapabilities2KHR structure is defined as:
typedef struct VkSharedPresentSurfaceCapabilities2KHR {
VkStructureType sType;
void* pNext;
VkImageUsageFlags2KHR sharedPresentSupportedUsageFlags;
} VkSharedPresentSurfaceCapabilities2KHR;
pub struct SharedPresentSurfaceCapabilities2KHR {
s_type: vk::StructureType,
p_next: *mut c_void,
shared_present_supported_usage_flags: vk::ImageUsageFlags2KHR,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.sharedPresentSupportedUsageFlagsis a bitmask of VkImageUsageFlagBits2KHR representing the ways the application can use the shared presentable image from a swapchain created with VkPresentModeKHR set toVK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHRorVK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHRfor the surface on the specified device.VK_IMAGE_USAGE_2_COLOR_ATTACHMENT_BIT_KHRmust be included in the set but implementations may support additional usages.
This structure can be included in the pNext chain of
VkSurfaceCapabilities2KHR to determine supported usage when using
VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR or
VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR presentation mode.
Valid Usage (Implicit)
VUID-VkSharedPresentSurfaceCapabilities2KHR-sType-sType
sType must be VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR