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 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 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.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. Vendors may still fail presentation requests that specify unsupported combinations.See Also
VkDisplayPlaneCapabilities2KHR,VkExtent2D,VkOffset2D,GetDisplayPlaneCapabilitiesKHRMember documentation
supportedAlpha– a bitmask ofVkDisplayPlaneAlphaFlagBitsKHRdescribing 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. Thexandycomponents ofmaxSrcPositionmust each be greater than or equal to thexandycomponents ofminSrcPosition, 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,maxDstExtentall 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,minDstPositionandmaxDstPositionmay contain negative values.maxDstPosition– seeminDstPositionminDstExtent– seeminDstPositionmaxDstExtent– seeminDstPosition
Layout
struct VkDisplayPlaneCapabilitiesKHR { VkDisplayPlaneAlphaFlagsKHR supportedAlpha;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 Modifier and Type Method Description static VkDisplayPlaneCapabilitiesKHRcalloc()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated withmemCalloc.static VkDisplayPlaneCapabilitiesKHR.Buffercalloc(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated withmemCalloc.static VkDisplayPlaneCapabilitiesKHRcallocStack()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHR.BuffercallocStack(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 VkDisplayPlaneCapabilitiesKHRmallocStack()Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the thread-localMemoryStack.static VkDisplayPlaneCapabilitiesKHR.BuffermallocStack(int capacity)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDisplayPlaneCapabilitiesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPlaneCapabilitiesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStack.VkExtent2DmaxDstExtent()Returns aVkExtent2Dview of themaxDstExtentfield.VkOffset2DmaxDstPosition()Returns aVkOffset2Dview of themaxDstPositionfield.VkExtent2DmaxSrcExtent()Returns aVkExtent2Dview of themaxSrcExtentfield.VkOffset2DmaxSrcPosition()Returns aVkOffset2Dview of themaxSrcPositionfield.VkExtent2DminDstExtent()Returns aVkExtent2Dview of theminDstExtentfield.VkOffset2DminDstPosition()Returns aVkOffset2Dview of theminDstPositionfield.VkExtent2DminSrcExtent()Returns aVkExtent2Dview of theminSrcExtentfield.VkOffset2DminSrcPosition()Returns aVkOffset2Dview of theminSrcPositionfield.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()Returns the value of thesupportedAlphafield.
-
-
-
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()
Returns the value of thesupportedAlphafield.
-
minSrcPosition
public VkOffset2D minSrcPosition()
Returns aVkOffset2Dview of theminSrcPositionfield.
-
maxSrcPosition
public VkOffset2D maxSrcPosition()
Returns aVkOffset2Dview of themaxSrcPositionfield.
-
minSrcExtent
public VkExtent2D minSrcExtent()
Returns aVkExtent2Dview of theminSrcExtentfield.
-
maxSrcExtent
public VkExtent2D maxSrcExtent()
Returns aVkExtent2Dview of themaxSrcExtentfield.
-
minDstPosition
public VkOffset2D minDstPosition()
Returns aVkOffset2Dview of theminDstPositionfield.
-
maxDstPosition
public VkOffset2D maxDstPosition()
Returns aVkOffset2Dview of themaxDstPositionfield.
-
minDstExtent
public VkExtent2D minDstExtent()
Returns aVkExtent2Dview of theminDstExtentfield.
-
maxDstExtent
public VkExtent2D maxDstExtent()
Returns aVkExtent2Dview of themaxDstExtentfield.
-
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
public static VkDisplayPlaneCapabilitiesKHR mallocStack()
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDisplayPlaneCapabilitiesKHR callocStack()
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDisplayPlaneCapabilitiesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayPlaneCapabilitiesKHR callocStack(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
-
mallocStack
public static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(int capacity)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(int capacity)
Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDisplayPlaneCapabilitiesKHR.Buffer mallocStack(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
-
callocStack
public static VkDisplayPlaneCapabilitiesKHR.Buffer callocStack(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().
-
-