surface must be a surface that is supported by the device as determined using GetPhysicalDeviceSurfaceSupportKHRminImageCount must be less than or equal to the value returned in the maxImageCount member of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surface if the returned maxImageCount is not zeropresentMode is not PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR nor PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR, then minImageCount must be greater than or equal to the value returned in the minImageCount member of the VkSurfaceCapabilitiesKHR structure returned by GetPhysicalDeviceSurfaceCapabilitiesKHR for the surfaceminImageCount must be 1 if presentMode is either PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR or PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHRimageFormat and imageColorSpace must match the format and colorSpace members, respectively, of one of the VkSurfaceFormatKHR structures returned by vkGetPhysicalDeviceSurfaceFormatsKHR for the surfaceVkSwapchainPresentScalingCreateInfoEXT structure was not included in the pNext chain, or it is included and VkSwapchainPresentScalingCreateInfoEXT::scalingBehavior is zero then imageExtent must be between minImageExtent and maxImageExtent, inclusive, where minImageExtent and maxImageExtent are members of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surfaceVkSwapchainPresentScalingCreateInfoEXT structure was included in the pNext chain and VkSwapchainPresentScalingCreateInfoEXT::scalingBehavior is not zero then imageExtent must be between minScaledImageExtent and maxScaledImageExtent, inclusive, where minScaledImageExtent and maxScaledImageExtent are members of the VkSurfacePresentScalingCapabilitiesEXT structure returned by vkGetPhysicalDeviceSurfaceCapabilities2KHR for the surface and presentModeimageExtent members width and height must both be non-zeroimageArrayLayers must be greater than 0 and less than or equal to the maxImageArrayLayers member of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surfacepresentMode is PRESENT_MODE_IMMEDIATE_KHR, PRESENT_MODE_MAILBOX_KHR, PRESENT_MODE_FIFO_KHR or PRESENT_MODE_FIFO_RELAXED_KHR, imageUsage must be a subset of the supported usage flags present in the supportedUsageFlags member of the VkSurfaceCapabilitiesKHR structure returned by GetPhysicalDeviceSurfaceCapabilitiesKHR for surfacepresentMode is PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR or PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR, imageUsage must be a subset of the supported usage flags present in the sharedPresentSupportedUsageFlags member of the VkSharedPresentSurfaceCapabilitiesKHR structure returned by GetPhysicalDeviceSurfaceCapabilities2KHR for surfaceimageSharingMode is SHARING_MODE_CONCURRENT, pQueueFamilyIndices must be a valid pointer to an array of queueFamilyIndexCount uint32_t valuesimageSharingMode is SHARING_MODE_CONCURRENT, queueFamilyIndexCount must be greater than 1imageSharingMode is SHARING_MODE_CONCURRENT, each element of pQueueFamilyIndices must be unique and must be less than pQueueFamilyPropertyCount returned by either GetPhysicalDeviceQueueFamilyProperties or GetPhysicalDeviceQueueFamilyProperties2 for the physicalDevice that was used to create devicepreTransform must be one of the bits present in the supportedTransforms member of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surfacecompositeAlpha must be one of the bits present in the supportedCompositeAlpha member of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surfacepresentMode must be one of the VkPresentModeKHR values returned by vkGetPhysicalDeviceSurfacePresentModesKHR for the surfaceVkDeviceGroupDeviceCreateInfo::physicalDeviceCount equal to 1, flags must not contain SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHRoldSwapchain is not NULL_HANDLE, oldSwapchain must be a non-retired swapchain associated with native window referred to by surfaceGetPhysicalDeviceImageFormatPropertiesflags contains SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR then the pNext chain must include a VkImageFormatListCreateInfo structure with a viewFormatCount greater than zero and pViewFormats must have an element equal to imageFormatVkImageFormatListCreateInfo structure was included in the pNext chain and VkImageFormatListCreateInfo::viewFormatCount is not zero then all of the formats in VkImageFormatListCreateInfo::pViewFormats must be compatible with the format as described in the compatibility tableflags does not contain SWAPCHAIN_CREATE_MUTABLE_FORMAT_BIT_KHR and the pNext chain include a VkImageFormatListCreateInfo structure then VkImageFormatListCreateInfo::viewFormatCount must be 0 or 1flags contains SWAPCHAIN_CREATE_PROTECTED_BIT_KHR, then VkSurfaceProtectedCapabilitiesKHR::supportsProtected must be TRUE in the VkSurfaceProtectedCapabilitiesKHR structure returned by GetPhysicalDeviceSurfaceCapabilities2KHR for surfacepNext chain includes a VkSurfaceFullScreenExclusiveInfoEXT structure with its fullScreenExclusive member set to FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT, and surface was created using CreateWin32SurfaceKHR, a VkSurfaceFullScreenExclusiveWin32InfoEXT structure must be included in the pNext chainimageCompressionControlSwapchain feature is not enabled, the pNext chain must not include an VkImageCompressionControlEXT structuresType must be STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDeviceGroupSwapchainCreateInfoKHR, VkImageCompressionControlEXT, VkImageFormatListCreateInfo, VkSurfaceFullScreenExclusiveInfoEXT, VkSurfaceFullScreenExclusiveWin32InfoEXT, VkSwapchainCounterCreateInfoEXT, VkSwapchainDisplayNativeHdrCreateInfoAMD, VkSwapchainPresentBarrierCreateInfoNV, VkSwapchainPresentModesCreateInfoEXT, or VkSwapchainPresentScalingCreateInfoEXTsType value of each struct in the pNext chain must be uniqueflags must be a valid combination of VkSwapchainCreateFlagBitsKHR valuessurface must be a valid VkSurfaceKHR handleimageFormat must be a valid VkFormat valueimageColorSpace must be a valid VkColorSpaceKHR valueimageUsage must be a valid combination of VkImageUsageFlagBits valuesimageUsage must not be 0imageSharingMode must be a valid VkSharingMode valuepreTransform must be a valid VkSurfaceTransformFlagBitsKHR valuecompositeAlpha must be a valid VkCompositeAlphaFlagBitsKHR valuepresentMode must be a valid VkPresentModeKHR valueoldSwapchain is not NULL_HANDLE, oldSwapchain must be a valid VkSwapchainKHR handleoldSwapchain, and surface that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkInstanceVkExtent2D, CreateSharedSwapchainsKHR, CreateSwapchainKHR
struct VkSwapchainCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkSwapchainCreateFlagsKHR flags;
VkSurfaceKHR surface;
uint32_t minImageCount;
VkFormat imageFormat;
VkColorSpaceKHR imageColorSpace;
VkExtent2D imageExtent;
uint32_t imageArrayLayers;
VkImageUsageFlags imageUsage;
VkSharingMode imageSharingMode;
uint32_t queueFamilyIndexCount;
uint32_t const * pQueueFamilyIndices;
VkSurfaceTransformFlagBitsKHR preTransform;
VkCompositeAlphaFlagBitsKHR compositeAlpha;
VkPresentModeKHR presentMode;
VkBool32 clipped;
VkSwapchainKHR oldSwapchain;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkSwapchainCreateInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CLIPPED
The struct member offsets. |
| public static final int | COMPOSITEALPHA
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | IMAGEARRAYLAYERS
The struct member offsets. |
| public static final int | IMAGECOLORSPACE
The struct member offsets. |
| public static final int | IMAGEEXTENT
The struct member offsets. |
| public static final int | IMAGEFORMAT
The struct member offsets. |
| public static final int | IMAGESHARINGMODE
The struct member offsets. |
| public static final int | IMAGEUSAGE
The struct member offsets. |
| public static final int | MINIMAGECOUNT
The struct member offsets. |
| public static final int | OLDSWAPCHAIN
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | PQUEUEFAMILYINDICES
The struct member offsets. |
| public static final int | PRESENTMODE
The struct member offsets. |
| public static final int | PRETRANSFORM
The struct member offsets. |
| public static final int | QUEUEFAMILYINDEXCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | SURFACE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkSwapchainCreateInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkSwapchainCreateInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSwapchainCreateInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR. | |
| public static VkSwapchainCreateInfoKHR. | |
| public boolean | clipped()
specifies whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface that are not visible. |
| public VkSwapchainCreateInfoKHR | |
| public int | compositeAlpha()
a |
| public VkSwapchainCreateInfoKHR | |
| protected VkSwapchainCreateInfoKHR | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR | create(long address)
Returns a new |
| public static VkSwapchainCreateInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkSwapchainCreateInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR. | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public VkExtent2D | |
| public VkSwapchainCreateInfoKHR | |
| public VkSwapchainCreateInfoKHR | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public int | imageUsage()
a bitmask of |
| public VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkSwapchainCreateInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSwapchainCreateInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR | |
| public static VkSwapchainCreateInfoKHR. | |
| public static VkSwapchainCreateInfoKHR. | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static VkExtent2D | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static IntBuffer | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | nqueueFamilyIndexCount(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkSwapchainCreateInfoKHR | |
| public long | |
| public VkSwapchainCreateInfoKHR | |
| public VkSwapchainCreateInfoKHR | pNext(VkDeviceGroupSwapchainCreateInfoKHR value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkImageCompressionControlEXT value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkImageFormatListCreateInfo value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkImageFormatListCreateInfoKHR value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSurfaceFullScreenExclusiveInfoEXT value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSurfaceFullScreenExclusiveWin32InfoEXT value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSwapchainCounterCreateInfoEXT value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSwapchainDisplayNativeHdrCreateInfoAMD value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSwapchainPresentBarrierCreateInfoNV value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSwapchainPresentModesCreateInfoEXT value)
Prepends the specified |
| public VkSwapchainCreateInfoKHR | pNext(VkSwapchainPresentScalingCreateInfoEXT value)
Prepends the specified |
| public IntBuffer | pQueueFamilyIndices()
a pointer to an array of queue family indices having access to the images(s) of the swapchain when |
| public VkSwapchainCreateInfoKHR | pQueueFamilyIndices(IntBuffer value)
Sets the address of the specified |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public int | preTransform()
a |
| public VkSwapchainCreateInfoKHR | |
| public int | queueFamilyIndexCount()
the number of queue families having access to the image(s) of the swapchain when |
| public VkSwapchainCreateInfoKHR | |
| public VkSwapchainCreateInfoKHR | set(int sType, long pNext, int flags, long surface, int minImageCount, int imageFormat, int imageColorSpace, VkExtent2D imageExtent, int imageArrayLayers, int imageUsage, int imageSharingMode, int queueFamilyIndexCount, IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain)
Initializes this struct with the specified values. |
| public VkSwapchainCreateInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkSwapchainCreateInfoKHR | |
| public VkSwapchainCreateInfoKHR | |
| public long | |
| public VkSwapchainCreateInfoKHR |