Supported usage flags of a presentable image when using PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR or PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR presentation mode are provided by VkSharedPresentSurfaceCapabilitiesKHR::sharedPresentSupportedUsageFlags.
Formulas such as min(N, maxImageCount) are not correct, since maxImageCount may be zero.
VkExtent2D, VkSurfaceCapabilities2KHR, GetPhysicalDeviceSurfaceCapabilitiesKHR
struct VkSurfaceCapabilitiesKHR {
uint32_t minImageCount;
uint32_t maxImageCount;
VkExtent2D currentExtent;
VkExtent2D minImageExtent;
VkExtent2D maxImageExtent;
uint32_t maxImageArrayLayers;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkSurfaceTransformFlagBitsKHR currentTransform;
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
VkImageUsageFlags supportedUsageFlags;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkSurfaceCapabilitiesKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CURRENTEXTENT
The struct member offsets. |
| public static final int | CURRENTTRANSFORM
The struct member offsets. |
| public static final int | MAXIMAGEARRAYLAYERS
The struct member offsets. |
| public static final int | MAXIMAGECOUNT
The struct member offsets. |
| public static final int | MAXIMAGEEXTENT
The struct member offsets. |
| public static final int | MINIMAGECOUNT
The struct member offsets. |
| public static final int | MINIMAGEEXTENT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SUPPORTEDCOMPOSITEALPHA
The struct member offsets. |
| public static final int | SUPPORTEDTRANSFORMS
The struct member offsets. |
| public static final int | SUPPORTEDUSAGEFLAGS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkSurfaceCapabilitiesKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkSurfaceCapabilitiesKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSurfaceCapabilitiesKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR. | |
| public static VkSurfaceCapabilitiesKHR. | |
| protected VkSurfaceCapabilitiesKHR | 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 VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR | create(long address)
Returns a new |
| public static VkSurfaceCapabilitiesKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkSurfaceCapabilitiesKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR. | |
| public VkExtent2D | currentExtent()
the current width and height of the surface, or the special value |
| public int | currentTransform()
|
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkSurfaceCapabilitiesKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSurfaceCapabilitiesKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR | |
| public static VkSurfaceCapabilitiesKHR. | |
| public static VkSurfaceCapabilitiesKHR. | |
| public int | maxImageArrayLayers()
the maximum number of layers presentable images can have for a swapchain created for this device and surface, and will be at least one. |
| public int | maxImageCount()
the maximum number of images the specified device supports for a swapchain created for the surface, and will be either 0, or greater than or equal to |
| public VkExtent2D | maxImageExtent()
contains the largest valid swapchain extent for the surface on the specified device. |
| public int | minImageCount()
the minimum number of images the specified device supports for a swapchain created for the surface, and will be at least one. |
| public VkExtent2D | minImageExtent()
contains the smallest valid swapchain extent for the surface on the specified device. |
| public static VkExtent2D | |
| public static int | |
| public static int | |
| public static int | |
| public static VkExtent2D | |
| public static int | |
| public static VkExtent2D | |
| public static int | |
| public static int | |
| public static int | |
| public int | |
| public int | supportedCompositeAlpha()
a bitmask of |
| public int | supportedTransforms()
a bitmask of |
| public int | supportedUsageFlags()
a bitmask of |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CURRENTEXTENT | back to summary |
|---|---|
| public static final int CURRENTEXTENT The struct member offsets. | |
| CURRENTTRANSFORM | back to summary |
|---|---|
| public static final int CURRENTTRANSFORM The struct member offsets. | |
| MAXIMAGEARRAYLAYERS | back to summary |
|---|---|
| public static final int MAXIMAGEARRAYLAYERS The struct member offsets. | |
| MAXIMAGECOUNT | back to summary |
|---|---|
| public static final int MAXIMAGECOUNT The struct member offsets. | |
| MAXIMAGEEXTENT | back to summary |
|---|---|
| public static final int MAXIMAGEEXTENT The struct member offsets. | |
| MINIMAGECOUNT | back to summary |
|---|---|
| public static final int MINIMAGECOUNT The struct member offsets. | |
| MINIMAGEEXTENT | back to summary |
|---|---|
| public static final int MINIMAGEEXTENT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SUPPORTEDCOMPOSITEALPHA | back to summary |
|---|---|
| public static final int SUPPORTEDCOMPOSITEALPHA The struct member offsets. | |
| SUPPORTEDTRANSFORMS | back to summary |
|---|---|
| public static final int SUPPORTEDTRANSFORMS The struct member offsets. | |
| SUPPORTEDUSAGEFLAGS | back to summary |
|---|---|
| public static final int SUPPORTEDUSAGEFLAGS The struct member offsets. | |
| VkSurfaceCapabilitiesKHR | back to summary |
|---|---|
| protected VkSurfaceCapabilitiesKHR(long address, ByteBuffer container) | |
| VkSurfaceCapabilitiesKHR | back to summary |
|---|---|
| public VkSurfaceCapabilitiesKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkSurfaceCapabilitiesKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Like
| |
| currentExtent | back to summary |
|---|---|
| public VkExtent2D currentExtent() the current width and height of the surface, or the special value | |
| currentTransform | back to summary |
|---|---|
| public int currentTransform()
| |
| malloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSurfaceCapabilitiesKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| maxImageArrayLayers | back to summary |
|---|---|
| public int maxImageArrayLayers() the maximum number of layers presentable images can have for a swapchain created for this device and surface, and will be at least one.
| |
| maxImageCount | back to summary |
|---|---|
| public int maxImageCount() the maximum number of images the specified device supports for a swapchain created for the surface, and will be either 0, or greater than or equal to
| |
| maxImageExtent | back to summary |
|---|---|
| public VkExtent2D maxImageExtent() contains the largest valid swapchain extent for the surface on the specified device. The | |
| minImageCount | back to summary |
|---|---|
| public int minImageCount() the minimum number of images the specified device supports for a swapchain created for the surface, and will be at least one.
| |
| minImageExtent | back to summary |
|---|---|
| public VkExtent2D minImageExtent() contains the smallest valid swapchain extent for the surface on the specified device. The | |
| ncurrentExtent | back to summary |
|---|---|
| public static VkExtent2D ncurrentExtent(long struct) Unsafe version of | |
| ncurrentTransform | back to summary |
|---|---|
| public static int ncurrentTransform(long struct) Unsafe version of | |
| nmaxImageArrayLayers | back to summary |
|---|---|
| public static int nmaxImageArrayLayers(long struct) Unsafe version of | |
| nmaxImageCount | back to summary |
|---|---|
| public static int nmaxImageCount(long struct) Unsafe version of | |
| nmaxImageExtent | back to summary |
|---|---|
| public static VkExtent2D nmaxImageExtent(long struct) Unsafe version of | |
| nminImageCount | back to summary |
|---|---|
| public static int nminImageCount(long struct) Unsafe version of | |
| nminImageExtent | back to summary |
|---|---|
| public static VkExtent2D nminImageExtent(long struct) Unsafe version of | |
| nsupportedCompositeAlpha | back to summary |
|---|---|
| public static int nsupportedCompositeAlpha(long struct) Unsafe version of | |
| nsupportedTransforms | back to summary |
|---|---|
| public static int nsupportedTransforms(long struct) Unsafe version of | |
| nsupportedUsageFlags | back to summary |
|---|---|
| public static int nsupportedUsageFlags(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| supportedCompositeAlpha | back to summary |
|---|---|
| public int supportedCompositeAlpha() a bitmask of
| |
| supportedTransforms | back to summary |
|---|---|
| public int supportedTransforms() a bitmask of
| |
| supportedUsageFlags | back to summary |
|---|---|
| public int supportedUsageFlags() a bitmask of
| |
VkSurfaceCapabilitiesKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkSurfaceCapabilitiesKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public VkExtent2D | |
| public int | |
| protected VkSurfaceCapabilitiesKHR | |
| public int | |
| public int | |
| public VkExtent2D | |
| public int | |
| public VkExtent2D | |
| protected VkSurfaceCapabilitiesKHR. | |
| public int | Returns: the value of theVkSurfaceCapabilitiesKHR#supportedCompositeAlpha field.
|
| public int | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkSurfaceCapabilitiesKHR ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| currentExtent | back to summary |
|---|---|
public VkExtent2D currentExtent()
| |
| currentTransform | back to summary |
|---|---|
public int currentTransform()
| |
| getElementFactory | back to summary |
|---|---|
| protected VkSurfaceCapabilitiesKHR getElementFactory() Implements abstract org.
| |
| maxImageArrayLayers | back to summary |
|---|---|
public int maxImageArrayLayers()
| |
| maxImageCount | back to summary |
|---|---|
public int maxImageCount()
| |
| maxImageExtent | back to summary |
|---|---|
public VkExtent2D maxImageExtent()
| |
| minImageCount | back to summary |
|---|---|
public int minImageCount()
| |
| minImageExtent | back to summary |
|---|---|
public VkExtent2D minImageExtent()
| |
| self | back to summary |
|---|---|
| protected VkSurfaceCapabilitiesKHR. Implements abstract org.
| |
| supportedCompositeAlpha | back to summary |
|---|---|
public int supportedCompositeAlpha()
| |
| supportedTransforms | back to summary |
|---|---|
public int supportedTransforms()
| |
| supportedUsageFlags | back to summary |
|---|---|
public int supportedUsageFlags()
| |