Before creating a swapchain whose scaling mode can be specified through the use of VkSwapchainPresentScalingCreateInfoEXT, obtain the set of supported scaling modes by including a VkSurfacePresentModeEXT structure in the pNext chain of VkPhysicalDeviceSurfaceInfo2KHR when calling GetPhysicalDeviceSurfaceCapabilities2KHR. The implementation must return the same values in VkSurfacePresentScalingCapabilitiesEXT for any of the compatible present modes as obtained through VkSurfacePresentModeCompatibilityEXT.
sType must be STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXTsupportedPresentScaling must be a valid combination of VkPresentScalingFlagBitsEXT valuessupportedPresentGravityX must be a valid combination of VkPresentGravityFlagBitsEXT valuessupportedPresentGravityY must be a valid combination of VkPresentGravityFlagBitsEXT values
struct VkSurfacePresentScalingCapabilitiesEXT {
VkStructureType sType;
void * pNext;
VkPresentScalingFlagsEXT supportedPresentScaling;
VkPresentGravityFlagsEXT supportedPresentGravityX;
VkPresentGravityFlagsEXT supportedPresentGravityY;
VkExtent2D minScaledImageExtent;
VkExtent2D maxScaledImageExtent;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkSurfacePresentScalingCapabilitiesEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MAXSCALEDIMAGEEXTENT
The struct member offsets. |
| public static final int | MINSCALEDIMAGEEXTENT
The struct member offsets. |
| public static final int | PNEXT
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 | SUPPORTEDPRESENTGRAVITYX
The struct member offsets. |
| public static final int | SUPPORTEDPRESENTGRAVITYY
The struct member offsets. |
| public static final int | SUPPORTEDPRESENTSCALING
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkSurfacePresentScalingCapabilitiesEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT | |
| public static VkSurfacePresentScalingCapabilitiesEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkSurfacePresentScalingCapabilitiesEXT | 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 VkSurfacePresentScalingCapabilitiesEXT | |
| public static VkSurfacePresentScalingCapabilitiesEXT | create(long address)
Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkSurfacePresentScalingCapabilitiesEXT | |
| public static VkSurfacePresentScalingCapabilitiesEXT. | |
| public static VkSurfacePresentScalingCapabilitiesEXT | |
| public static VkSurfacePresentScalingCapabilitiesEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSurfacePresentScalingCapabilitiesEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public VkExtent2D | maxScaledImageExtent()
contains the largest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in |
| public VkSurfacePresentScalingCapabilitiesEXT | maxScaledImageExtent(VkExtent2D value)
Copies the specified |
| public VkSurfacePresentScalingCapabilitiesEXT | maxScaledImageExtent(Consumer<VkExtent2D> consumer)
Passes the |
| public VkExtent2D | minScaledImageExtent()
contains the smallest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in |
| public VkSurfacePresentScalingCapabilitiesEXT | minScaledImageExtent(VkExtent2D value)
Copies the specified |
| public VkSurfacePresentScalingCapabilitiesEXT | minScaledImageExtent(Consumer<VkExtent2D> consumer)
Passes the |
| public static VkExtent2D | |
| public static void | |
| public static VkExtent2D | |
| public static void | |
| public static long | |
| 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 long | |
| public VkSurfacePresentScalingCapabilitiesEXT | |
| public VkSurfacePresentScalingCapabilitiesEXT | set(int sType, long pNext, int supportedPresentScaling, int supportedPresentGravityX, int supportedPresentGravityY, VkExtent2D minScaledImageExtent, VkExtent2D maxScaledImageExtent)
Initializes this struct with the specified values. |
| public VkSurfacePresentScalingCapabilitiesEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkSurfacePresentScalingCapabilitiesEXT | |
| public VkSurfacePresentScalingCapabilitiesEXT | sType$Default()
Sets the |
| public int | supportedPresentGravityX()
a bitmask of |
| public VkSurfacePresentScalingCapabilitiesEXT | |
| public int | supportedPresentGravityY()
a bitmask of |
| public VkSurfacePresentScalingCapabilitiesEXT | |
| public int | supportedPresentScaling()
a bitmask of |
| public VkSurfacePresentScalingCapabilitiesEXT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MAXSCALEDIMAGEEXTENT | back to summary |
|---|---|
| public static final int MAXSCALEDIMAGEEXTENT The struct member offsets. | |
| MINSCALEDIMAGEEXTENT | back to summary |
|---|---|
| public static final int MINSCALEDIMAGEEXTENT The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| SUPPORTEDPRESENTGRAVITYX | back to summary |
|---|---|
| public static final int SUPPORTEDPRESENTGRAVITYX The struct member offsets. | |
| SUPPORTEDPRESENTGRAVITYY | back to summary |
|---|---|
| public static final int SUPPORTEDPRESENTGRAVITYY The struct member offsets. | |
| SUPPORTEDPRESENTSCALING | back to summary |
|---|---|
| public static final int SUPPORTEDPRESENTSCALING The struct member offsets. | |
| VkSurfacePresentScalingCapabilitiesEXT | back to summary |
|---|---|
| protected VkSurfacePresentScalingCapabilitiesEXT(long address, ByteBuffer container) | |
| VkSurfacePresentScalingCapabilitiesEXT | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkSurfacePresentScalingCapabilitiesEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Like
| |
| malloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSurfacePresentScalingCapabilitiesEXT. Returns a new
| |
| maxScaledImageExtent | back to summary |
|---|---|
| public VkExtent2D maxScaledImageExtent() contains the largest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in | |
| maxScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT maxScaledImageExtent(VkExtent2D value) Copies the specified | |
| maxScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT maxScaledImageExtent(Consumer<VkExtent2D> consumer) Passes the | |
| minScaledImageExtent | back to summary |
|---|---|
| public VkExtent2D minScaledImageExtent() contains the smallest valid swapchain extent for the surface on the specified device when one of the scaling methods specified in | |
| minScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT minScaledImageExtent(VkExtent2D value) Copies the specified | |
| minScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT minScaledImageExtent(Consumer<VkExtent2D> consumer) Passes the | |
| nmaxScaledImageExtent | back to summary |
|---|---|
| public static VkExtent2D nmaxScaledImageExtent(long struct) Unsafe version of | |
| nmaxScaledImageExtent | back to summary |
|---|---|
| public static void nmaxScaledImageExtent(long struct, VkExtent2D value) Unsafe version of | |
| nminScaledImageExtent | back to summary |
|---|---|
| public static VkExtent2D nminScaledImageExtent(long struct) Unsafe version of | |
| nminScaledImageExtent | back to summary |
|---|---|
| public static void nminScaledImageExtent(long struct, VkExtent2D value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| nsupportedPresentGravityX | back to summary |
|---|---|
| public static int nsupportedPresentGravityX(long struct) Unsafe version of | |
| nsupportedPresentGravityX | back to summary |
|---|---|
| public static void nsupportedPresentGravityX(long struct, int value) Unsafe version of | |
| nsupportedPresentGravityY | back to summary |
|---|---|
| public static int nsupportedPresentGravityY(long struct) Unsafe version of | |
| nsupportedPresentGravityY | back to summary |
|---|---|
| public static void nsupportedPresentGravityY(long struct, int value) Unsafe version of | |
| nsupportedPresentScaling | back to summary |
|---|---|
| public static int nsupportedPresentScaling(long struct) Unsafe version of | |
| nsupportedPresentScaling | back to summary |
|---|---|
| public static void nsupportedPresentScaling(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT set(int sType, long pNext, int supportedPresentScaling, int supportedPresentGravityX, int supportedPresentGravityY, VkExtent2D minScaledImageExtent, VkExtent2D maxScaledImageExtent) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT set(VkSurfacePresentScalingCapabilitiesEXT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT sType$Default() Sets the | |
| supportedPresentGravityX | back to summary |
|---|---|
| public int supportedPresentGravityX() a bitmask of
| |
| supportedPresentGravityX | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT supportedPresentGravityX(int value) Sets the specified value to the | |
| supportedPresentGravityY | back to summary |
|---|---|
| public int supportedPresentGravityY() a bitmask of
| |
| supportedPresentGravityY | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT supportedPresentGravityY(int value) Sets the specified value to the | |
| supportedPresentScaling | back to summary |
|---|---|
| public int supportedPresentScaling() a bitmask of
| |
| supportedPresentScaling | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT supportedPresentScaling(int value) Sets the specified value to the | |
VkSurfacePresentScalingCapabilitiesEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkSurfacePresentScalingCapabilitiesEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkSurfacePresentScalingCapabilitiesEXT 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) | |
| getElementFactory | back to summary |
|---|---|
| protected VkSurfacePresentScalingCapabilitiesEXT getElementFactory() Implements abstract org.
| |
| maxScaledImageExtent | back to summary |
|---|---|
public VkExtent2D maxScaledImageExtent()
| |
| maxScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Copies the specified | |
| maxScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Passes the | |
| minScaledImageExtent | back to summary |
|---|---|
public VkExtent2D minScaledImageExtent()
| |
| minScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Copies the specified | |
| minScaledImageExtent | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Passes the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkSurfacePresentScalingCapabilitiesEXT. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the | |
| supportedPresentGravityX | back to summary |
|---|---|
public int supportedPresentGravityX()
| |
| supportedPresentGravityX | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the specified value to the | |
| supportedPresentGravityY | back to summary |
|---|---|
public int supportedPresentGravityY()
| |
| supportedPresentGravityY | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the specified value to the | |
| supportedPresentScaling | back to summary |
|---|---|
public int supportedPresentScaling()
| |
| supportedPresentScaling | back to summary |
|---|---|
| public VkSurfacePresentScalingCapabilitiesEXT. Sets the specified value to the | |