Package org.lwjgl.vulkan
Class VkDisplayPlaneCapabilitiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDisplayPlaneCapabilitiesKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDisplayPlaneCapabilitiesKHR extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes capabilities of a mode and plane combination.
Valid Usage
supportedAlphamust be a valid combination ofVkDisplayPlaneAlphaFlagBitsKHRvalues
Member documentation
supportedAlpha– a bitmask describing the supported alpha blending modes. One or more of:DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHRDISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHRDISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHRDISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHRminSrcPosition– the minimum source rect offset supported by this plane using the specified modemaxSrcPosition– the maximum source rect offset supported by this plane using the specified modeminSrcExtent– the minimum source rect size supported by this plane using the specified modemaxSrcExtent– the maximum source rect size supported by this plane using the specified modeminDstPosition– the minimum output rect offset supported by this plane using the specified modemaxDstPosition– the maximum output rect offset supported by this plane using the specified modeminDstExtent– the minimum output rect size supported by this plane using the specified modemaxDstExtent– the maximum output rect size supported by this plane using the specified mode
Layout
struct VkDisplayPlaneCapabilitiesKHR { VkDisplayPlaneAlphaFlagsKHR supportedAlpha;VkOffset2DminSrcPosition;VkOffset2DmaxSrcPosition;VkExtent2DminSrcExtent;VkExtent2DmaxSrcExtent;VkOffset2DminDstPosition;VkOffset2DmaxDstPosition;VkExtent2DminDstExtent;VkExtent2DmaxDstExtent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDisplayPlaneCapabilitiesKHR.BufferAn array ofVkDisplayPlaneCapabilitiesKHRstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDisplayPlaneCapabilitiesKHRcallocStack(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 ornullif the address isNULL.static VkDisplayPlaneCapabilitiesKHR.Buffercreate(long address, int capacity)Create aVkDisplayPlaneCapabilitiesKHR.Bufferinstance at the specified memory.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, MemoryStack stack)Returns a newVkDisplayPlaneCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDisplayPlaneCapabilitiesKHRmallocStack(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.intsizeof()Returns thesizeof(struct).intsupportedAlpha()Returns the value of thesupportedAlphafield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkDisplayPlaneCapabilitiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDisplayPlaneCapabilitiesKHR callocStack(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, 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, 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
-
-