public class VkDisplayPlaneCapabilitiesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The minimum and maximum position and extent fields describe the implementation limits, if any, as they apply to the specified display mode and plane. Vendors may support displaying a subset of a swapchain's presentable images on the specified display plane. This is expressed by returning minSrcPosition, maxSrcPosition, minSrcExtent, and maxSrcExtent values that indicate a range of possible positions and sizes may be used to specify the region within the presentable images that source pixels will be read from when creating a swapchain on the specified display mode and plane.
Vendors may also support mapping the presentable images`' content to a subset or superset of the visible region in the specified display mode. This is expressed by returning minDstPosition, maxDstPosition, minDstExtent and maxDstExtent values that indicate a range of possible positions and sizes may be used to describe the region within the display mode that the source pixels will be mapped to.
Other vendors may support only a 1-1 mapping between pixels in the presentable images and the display mode. This may be indicated by returning (0,0) for minSrcPosition, maxSrcPosition, minDstPosition, and maxDstPosition, and (display mode width, display mode height) for minSrcExtent, maxSrcExtent, minDstExtent, and maxDstExtent.
These values indicate the limits of the implementation's individual fields. Not all combinations of values within the offset and extent ranges returned in VkDisplayPlaneCapabilitiesKHR are guaranteed to be supported. Presentation requests specifying unsupported combinations may fail.
VkDisplayPlaneCapabilities2KHR, VkExtent2D, VkOffset2D, GetDisplayPlaneCapabilitiesKHR
supportedAlpha – a bitmask of VkDisplayPlaneAlphaFlagBitsKHR describing the supported alpha blending modes.minSrcPosition – the minimum source rectangle offset supported by this plane using the specified mode.maxSrcPosition – the maximum source rectangle offset supported by this plane using the specified mode. The x and y components of maxSrcPosition must each be greater than or equal to the x and y components of minSrcPosition, respectively.minSrcExtent – the minimum source rectangle size supported by this plane using the specified mode.maxSrcExtent – the maximum source rectangle size supported by this plane using the specified mode.minDstPosition – minDstPosition, maxDstPosition, minDstExtent, maxDstExtent all have similar semantics to their corresponding ptext:Src equivalents, but apply to the output region within the mode rather than the input region within the source image. Unlike the ptext:Src offsets, minDstPosition and maxDstPosition may contain negative values.maxDstPosition – see minDstPositionminDstExtent – see minDstPositionmaxDstExtent – see minDstPosition
struct VkDisplayPlaneCapabilitiesKHR {
VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
VkOffset2D minSrcPosition;
VkOffset2D maxSrcPosition;
VkExtent2D minSrcExtent;
VkExtent2D maxSrcExtent;
VkOffset2D minDstPosition;
VkOffset2D maxDstPosition;
VkExtent2D minDstExtent;
VkExtent2D maxDstExtent;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDisplayPlaneCapabilitiesKHR.Buffer
An array of
VkDisplayPlaneCapabilitiesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAXDSTEXTENT
The struct member offsets.
|
static int |
MAXDSTPOSITION
The struct member offsets.
|
static int |
MAXSRCEXTENT
The struct member offsets.
|
static int |
MAXSRCPOSITION
The struct member offsets.
|
static int |
MINDSTEXTENT
The struct member offsets.
|
static int |
MINDSTPOSITION
The struct member offsets.
|
static int |
MINSRCEXTENT
The struct member offsets.
|
static int |
MINSRCPOSITION
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SUPPORTEDALPHA
The struct member offsets.
|
| Constructor and Description |
|---|
VkDisplayPlaneCapabilitiesKHR(java.nio.ByteBuffer container)
Creates a
VkDisplayPlaneCapabilitiesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDisplayPlaneCapabilitiesKHR |
calloc()
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated with memCalloc. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
calloc(int capacity)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with memCalloc. |
static VkDisplayPlaneCapabilitiesKHR |
callocStack()
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneCapabilitiesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDisplayPlaneCapabilitiesKHR |
create()
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated with BufferUtils. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
create(int capacity)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with BufferUtils. |
static VkDisplayPlaneCapabilitiesKHR |
create(long address)
Returns a new
VkDisplayPlaneCapabilitiesKHR instance for the specified memory address. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
create(long address,
int capacity)
Create a
VkDisplayPlaneCapabilitiesKHR.Buffer instance at the specified memory. |
static VkDisplayPlaneCapabilitiesKHR |
createSafe(long address)
|
static VkDisplayPlaneCapabilitiesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkDisplayPlaneCapabilitiesKHR |
malloc()
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated with memAlloc. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
malloc(int capacity)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with memAlloc. |
static VkDisplayPlaneCapabilitiesKHR |
mallocStack()
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated on the thread-local MemoryStack. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkDisplayPlaneCapabilitiesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkDisplayPlaneCapabilitiesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDisplayPlaneCapabilitiesKHR instance allocated on the specified MemoryStack. |
VkExtent2D |
maxDstExtent()
Returns a
VkExtent2D view of the maxDstExtent field. |
VkOffset2D |
maxDstPosition()
Returns a
VkOffset2D view of the maxDstPosition field. |
VkExtent2D |
maxSrcExtent()
Returns a
VkExtent2D view of the maxSrcExtent field. |
VkOffset2D |
maxSrcPosition()
Returns a
VkOffset2D view of the maxSrcPosition field. |
VkExtent2D |
minDstExtent()
Returns a
VkExtent2D view of the minDstExtent field. |
VkOffset2D |
minDstPosition()
Returns a
VkOffset2D view of the minDstPosition field. |
VkExtent2D |
minSrcExtent()
Returns a
VkExtent2D view of the minSrcExtent field. |
VkOffset2D |
minSrcPosition()
Returns a
VkOffset2D view of the minSrcPosition field. |
static VkExtent2D |
nmaxDstExtent(long struct)
Unsafe version of
maxDstExtent(). |
static VkOffset2D |
nmaxDstPosition(long struct)
Unsafe version of
maxDstPosition(). |
static VkExtent2D |
nmaxSrcExtent(long struct)
Unsafe version of
maxSrcExtent(). |
static VkOffset2D |
nmaxSrcPosition(long struct)
Unsafe version of
maxSrcPosition(). |
static VkExtent2D |
nminDstExtent(long struct)
Unsafe version of
minDstExtent(). |
static VkOffset2D |
nminDstPosition(long struct)
Unsafe version of
minDstPosition(). |
static VkExtent2D |
nminSrcExtent(long struct)
Unsafe version of
minSrcExtent(). |
static VkOffset2D |
nminSrcPosition(long struct)
Unsafe version of
minSrcPosition(). |
static int |
nsupportedAlpha(long struct)
Unsafe version of
supportedAlpha(). |
int |
sizeof() |
int |
supportedAlpha()
Returns the value of the
supportedAlpha field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SUPPORTEDALPHA
public static final int MINSRCPOSITION
public static final int MAXSRCPOSITION
public static final int MINSRCEXTENT
public static final int MAXSRCEXTENT
public static final int MINDSTPOSITION
public static final int MAXDSTPOSITION
public static final int MINDSTEXTENT
public static final int MAXDSTEXTENT
public VkDisplayPlaneCapabilitiesKHR(java.nio.ByteBuffer container)
VkDisplayPlaneCapabilitiesKHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int supportedAlpha()
supportedAlpha field.public VkOffset2D minSrcPosition()
VkOffset2D view of the minSrcPosition field.public VkOffset2D maxSrcPosition()
VkOffset2D view of the maxSrcPosition field.public VkExtent2D minSrcExtent()
VkExtent2D view of the minSrcExtent field.public VkExtent2D maxSrcExtent()
VkExtent2D view of the maxSrcExtent field.public VkOffset2D minDstPosition()
VkOffset2D view of the minDstPosition field.public VkOffset2D maxDstPosition()
VkOffset2D view of the maxDstPosition field.public VkExtent2D minDstExtent()
VkExtent2D view of the minDstExtent field.public VkExtent2D maxDstExtent()
VkExtent2D view of the maxDstExtent field.public static VkDisplayPlaneCapabilitiesKHR malloc()
VkDisplayPlaneCapabilitiesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkDisplayPlaneCapabilitiesKHR calloc()
VkDisplayPlaneCapabilitiesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkDisplayPlaneCapabilitiesKHR create()
VkDisplayPlaneCapabilitiesKHR instance allocated with BufferUtils.public static VkDisplayPlaneCapabilitiesKHR create(long address)
VkDisplayPlaneCapabilitiesKHR instance for the specified memory address.@Nullable public static VkDisplayPlaneCapabilitiesKHR createSafe(long address)
public static VkDisplayPlaneCapabilitiesKHR.Buffer malloc(int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer calloc(int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer create(int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer create(long address, int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDisplayPlaneCapabilitiesKHR.Buffer createSafe(long address, int capacity)
public static VkDisplayPlaneCapabilitiesKHR mallocStack()
VkDisplayPlaneCapabilitiesKHR instance allocated on the thread-local MemoryStack.public static VkDisplayPlaneCapabilitiesKHR callocStack()
VkDisplayPlaneCapabilitiesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDisplayPlaneCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneCapabilitiesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDisplayPlaneCapabilitiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneCapabilitiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(int capacity)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDisplayPlaneCapabilitiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsupportedAlpha(long struct)
supportedAlpha().public static VkOffset2D nminSrcPosition(long struct)
minSrcPosition().public static VkOffset2D nmaxSrcPosition(long struct)
maxSrcPosition().public static VkExtent2D nminSrcExtent(long struct)
minSrcExtent().public static VkExtent2D nmaxSrcExtent(long struct)
maxSrcExtent().public static VkOffset2D nminDstPosition(long struct)
minDstPosition().public static VkOffset2D nmaxDstPosition(long struct)
maxDstPosition().public static VkExtent2D nminDstExtent(long struct)
minDstExtent().public static VkExtent2D nmaxDstExtent(long struct)
maxDstExtent().Copyright LWJGL. All Rights Reserved. License terms.