Class VkSurfacePresentModeCompatibilityEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSurfacePresentModeCompatibilityEXT>
org.lwjgl.vulkan.VkSurfacePresentModeCompatibilityEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkSurfacePresentModeCompatibilityEXT extends org.lwjgl.system.Struct<VkSurfacePresentModeCompatibilityEXT> implements org.lwjgl.system.NativeResource
Structure describing the subset of compatible presentation modes for the purposes of switching without swapchain recreation.
Description

If pPresentModes is NULL, then the number of present modes that are compatible with the one specified in VkSurfacePresentModeEXT is returned in presentModeCount. Otherwise, presentModeCount must point to a variable set by the application to the number of elements in the pPresentModes array, and on return the variable is overwritten with the number of values actually written to pPresentModes. If the value of presentModeCount is less than the number of compatible present modes that are supported, at most presentModeCount values will be written to pPresentModes. The implementation must include the present mode passed to VkSurfacePresentModeEXT in pPresentModes, unless presentModeCount is zero.

Before creating a swapchain whose present modes can be modified through the use of VkSwapchainPresentModesCreateInfoEXT, obtain the set of present modes compatible with a given initial present mode by including a VkSurfacePresentModeEXT structure in the pNext chain of VkPhysicalDeviceSurfaceInfo2KHR when calling GetPhysicalDeviceSurfaceCapabilities2KHR.

Valid Usage (Implicit)

Layout


 struct VkSurfacePresentModeCompatibilityEXT {
     VkStructureType sType();
     void * pNext();
     uint32_t presentModeCount();
     VkPresentModeKHR * pPresentModes();
 }