Class VkDisplayPlaneCapabilitiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayPlaneCapabilitiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDisplayPlaneCapabilitiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing capabilities of a mode and plane combination.Description
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, andmaxSrcExtentvalues that indicate a range of possible positions and sizes which 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,minDstExtentandmaxDstExtentvalues that indicate a range of possible positions and sizes which 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)forminSrcPosition,maxSrcPosition,minDstPosition, andmaxDstPosition, and (display mode width, display mode height) forminSrcExtent,maxSrcExtent,minDstExtent, andmaxDstExtent.The value
supportedAlphamust contain at least one validVkDisplayPlaneAlphaFlagBitsKHRbit.These values indicate the limits of the implementation’s individual fields. Not all combinations of values within the offset and extent ranges returned in
VkDisplayPlaneCapabilitiesKHRare guaranteed to be supported. Presentation requests specifying unsupported combinations may fail.See Also
VkDisplayPlaneCapabilities2KHR,VkExtent2D,VkOffset2D,GetDisplayPlaneCapabilitiesKHRLayout
struct VkDisplayPlaneCapabilitiesKHR { VkDisplayPlaneAlphaFlagsKHRsupportedAlpha();VkOffset2DminSrcPosition();VkOffset2DmaxSrcPosition();VkExtent2DminSrcExtent();VkExtent2DmaxSrcExtent();VkOffset2DminDstPosition();VkOffset2DmaxDstPosition();VkExtent2DminDstExtent();VkExtent2DmaxDstExtent(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDisplayPlaneCapabilitiesKHR.BufferAn array ofVkDisplayPlaneCapabilitiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXDSTEXTENT
MAXDSTPOSITION
MAXSRCEXTENT
MAXSRCPOSITION
MINDSTEXTENT
MINDSTPOSITION
MINSRCEXTENT
MINSRCPOSITIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTEDALPHAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDisplayPlaneCapabilitiesKHR(java.nio.ByteBuffer container)Creates aVkDisplayPlaneCapabilitiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkDisplayPlaneCapabilitiesKHRcalloc()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withmemCalloc.static VkDisplayPlaneCapabilitiesKHR.Buffercalloc(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withmemCalloc.static VkDisplayPlaneCapabilitiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHRcallocStack()Deprecated.static VkDisplayPlaneCapabilitiesKHR.BuffercallocStack(int capacity)Deprecated.static VkDisplayPlaneCapabilitiesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPlaneCapabilitiesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPlaneCapabilitiesKHRcreate()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withBufferUtils.static VkDisplayPlaneCapabilitiesKHR.Buffercreate(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withBufferUtils.static VkDisplayPlaneCapabilitiesKHRcreate(long address)Returns a newVkDisplayPlaneCapabilitiesKHRinstance for the specified memory address.static VkDisplayPlaneCapabilitiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayPlaneCapabilitiesKHR.Bufferinstance at the specified memory.static VkDisplayPlaneCapabilitiesKHRcreateSafe(long address)static VkDisplayPlaneCapabilitiesKHR.BuffercreateSafe(long address, int capacity)static VkDisplayPlaneCapabilitiesKHRmalloc()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withmemAlloc.static VkDisplayPlaneCapabilitiesKHR.Buffermalloc(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withmemAlloc.static VkDisplayPlaneCapabilitiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPlaneCapabilitiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStack.static VkDisplayPlaneCapabilitiesKHRmallocStack()Deprecated.static VkDisplayPlaneCapabilitiesKHR.BuffermallocStack(int capacity)Deprecated.static VkDisplayPlaneCapabilitiesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDisplayPlaneCapabilitiesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkExtent2DmaxDstExtent()seeminDstPositionVkOffset2DmaxDstPosition()seeminDstPositionVkExtent2DmaxSrcExtent()the maximum source rectangle size supported by this plane using the specified mode.VkOffset2DmaxSrcPosition()the maximum source rectangle offset supported by this plane using the specified mode.VkExtent2DminDstExtent()seeminDstPositionVkOffset2DminDstPosition()minDstPosition,maxDstPosition,minDstExtent,maxDstExtentall have similar semantics to their corresponding*Src*equivalents, but apply to the output region within the mode rather than the input region within the source image.VkExtent2DminSrcExtent()the minimum source rectangle size supported by this plane using the specified mode.VkOffset2DminSrcPosition()the minimum source rectangle offset supported by this plane using the specified mode.static VkExtent2DnmaxDstExtent(long struct)Unsafe version ofmaxDstExtent().static VkOffset2DnmaxDstPosition(long struct)Unsafe version ofmaxDstPosition().static VkExtent2DnmaxSrcExtent(long struct)Unsafe version ofmaxSrcExtent().static VkOffset2DnmaxSrcPosition(long struct)Unsafe version ofmaxSrcPosition().static VkExtent2DnminDstExtent(long struct)Unsafe version ofminDstExtent().static VkOffset2DnminDstPosition(long struct)Unsafe version ofminDstPosition().static VkExtent2DnminSrcExtent(long struct)Unsafe version ofminSrcExtent().static VkOffset2DnminSrcPosition(long struct)Unsafe version ofminSrcPosition().static intnsupportedAlpha(long struct)Unsafe version ofsupportedAlpha().intsizeof()intsupportedAlpha()a bitmask ofVkDisplayPlaneAlphaFlagBitsKHRdescribing the supported alpha blending modes.
-
-
-
Constructor Detail
-
VkDisplayPlaneCapabilitiesKHR
public VkDisplayPlaneCapabilitiesKHR(java.nio.ByteBuffer container)
Creates aVkDisplayPlaneCapabilitiesKHRinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
supportedAlpha
public int supportedAlpha()
a bitmask ofVkDisplayPlaneAlphaFlagBitsKHRdescribing the supported alpha blending modes.
-
minSrcPosition
public VkOffset2D minSrcPosition()
the minimum source rectangle offset supported by this plane using the specified mode.
-
maxSrcPosition
public VkOffset2D maxSrcPosition()
the maximum source rectangle offset supported by this plane using the specified mode. Thexandycomponents ofmaxSrcPositionmust each be greater than or equal to thexandycomponents ofminSrcPosition, respectively.
-
minSrcExtent
public VkExtent2D minSrcExtent()
the minimum source rectangle size supported by this plane using the specified mode.
-
maxSrcExtent
public VkExtent2D maxSrcExtent()
the maximum source rectangle size supported by this plane using the specified mode.
-
minDstPosition
public VkOffset2D minDstPosition()
minDstPosition,maxDstPosition,minDstExtent,maxDstExtentall have similar semantics to their corresponding*Src*equivalents, but apply to the output region within the mode rather than the input region within the source image. Unlike the*Src*offsets,minDstPositionandmaxDstPositionmay contain negative values.
-
maxDstPosition, minDstExtent, maxDstExtent
public VkOffset2D maxDstPosition() public VkExtent2D minDstExtent() public VkExtent2D maxDstExtent()
seeminDstPosition
-
malloc
public static VkDisplayPlaneCapabilitiesKHR malloc()
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDisplayPlaneCapabilitiesKHR calloc()
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDisplayPlaneCapabilitiesKHR create()
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withBufferUtils.
-
create
public static VkDisplayPlaneCapabilitiesKHR create(long address)
Returns a newVkDisplayPlaneCapabilitiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDisplayPlaneCapabilitiesKHR createSafe(long address)
-
malloc
public static VkDisplayPlaneCapabilitiesKHR.Buffer malloc(int capacity)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDisplayPlaneCapabilitiesKHR.Buffer calloc(int capacity)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPlaneCapabilitiesKHR.Buffer create(int capacity)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDisplayPlaneCapabilitiesKHR.Buffer create(long address, int capacity)
Create aVkDisplayPlaneCapabilitiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDisplayPlaneCapabilitiesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDisplayPlaneCapabilitiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDisplayPlaneCapabilitiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDisplayPlaneCapabilitiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDisplayPlaneCapabilitiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsupportedAlpha
public static int nsupportedAlpha(long struct)
Unsafe version ofsupportedAlpha().
-
nminSrcPosition
public static VkOffset2D nminSrcPosition(long struct)
Unsafe version ofminSrcPosition().
-
nmaxSrcPosition
public static VkOffset2D nmaxSrcPosition(long struct)
Unsafe version ofmaxSrcPosition().
-
nminSrcExtent
public static VkExtent2D nminSrcExtent(long struct)
Unsafe version ofminSrcExtent().
-
nmaxSrcExtent
public static VkExtent2D nmaxSrcExtent(long struct)
Unsafe version ofmaxSrcExtent().
-
nminDstPosition
public static VkOffset2D nminDstPosition(long struct)
Unsafe version ofminDstPosition().
-
nmaxDstPosition
public static VkOffset2D nmaxDstPosition(long struct)
Unsafe version ofmaxDstPosition().
-
nminDstExtent
public static VkExtent2D nminDstExtent(long struct)
Unsafe version ofminDstExtent().
-
nmaxDstExtent
public static VkExtent2D nmaxDstExtent(long struct)
Unsafe version ofmaxDstExtent().
-
-