Class VkDrmFormatModifierPropertiesList2EXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDrmFormatModifierPropertiesList2EXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDrmFormatModifierPropertiesList2EXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the list of DRM format modifiers supported for a format.Description
If
pDrmFormatModifierPropertiesisNULL, the number of modifiers compatible with the queriedformatis returned indrmFormatModifierCount. Otherwise, the application must setdrmFormatModifierCountto the length of the arraypDrmFormatModifierProperties; the function will write at mostdrmFormatModifierCountelements to the array, and will return indrmFormatModifierCountthe number of elements written.Among the elements in array
pDrmFormatModifierProperties, each returneddrmFormatModifiermust be unique.Among the elements in array
pDrmFormatModifierProperties, the bits reported indrmFormatModifierTilingFeaturesmust include the bits reported in the corresponding element ofVkDrmFormatModifierPropertiesListEXT::pDrmFormatModifierProperties.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT
See Also
VkDrmFormatModifierProperties2EXTLayout
struct VkDrmFormatModifierPropertiesList2EXT { VkStructureTypesType(); void *pNext(); uint32_tdrmFormatModifierCount();VkDrmFormatModifierProperties2EXT*pDrmFormatModifierProperties(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDrmFormatModifierPropertiesList2EXT.BufferAn array ofVkDrmFormatModifierPropertiesList2EXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDRMFORMATMODIFIERCOUNT
PDRMFORMATMODIFIERPROPERTIES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDrmFormatModifierPropertiesList2EXT(java.nio.ByteBuffer container)Creates aVkDrmFormatModifierPropertiesList2EXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDrmFormatModifierPropertiesList2EXTcalloc()Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withmemCalloc.static VkDrmFormatModifierPropertiesList2EXT.Buffercalloc(int capacity)Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withmemCalloc.static VkDrmFormatModifierPropertiesList2EXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrmFormatModifierPropertiesList2EXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrmFormatModifierPropertiesList2EXTcreate()Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withBufferUtils.static VkDrmFormatModifierPropertiesList2EXT.Buffercreate(int capacity)Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withBufferUtils.static VkDrmFormatModifierPropertiesList2EXTcreate(long address)Returns a newVkDrmFormatModifierPropertiesList2EXTinstance for the specified memory address.static VkDrmFormatModifierPropertiesList2EXT.Buffercreate(long address, int capacity)Create aVkDrmFormatModifierPropertiesList2EXT.Bufferinstance at the specified memory.static VkDrmFormatModifierPropertiesList2EXTcreateSafe(long address)static VkDrmFormatModifierPropertiesList2EXT.BuffercreateSafe(long address, int capacity)intdrmFormatModifierCount()an inout parameter related to the number of modifiers compatible with theformat, as described below.static VkDrmFormatModifierPropertiesList2EXTmalloc()Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withmemAlloc.static VkDrmFormatModifierPropertiesList2EXT.Buffermalloc(int capacity)Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withmemAlloc.static VkDrmFormatModifierPropertiesList2EXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDrmFormatModifierPropertiesList2EXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated on the specifiedMemoryStack.static intndrmFormatModifierCount(long struct)Unsafe version ofdrmFormatModifierCount().static VkDrmFormatModifierProperties2EXT.BuffernpDrmFormatModifierProperties(long struct)Unsafe version ofpDrmFormatModifierProperties().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkDrmFormatModifierProperties2EXT.BufferpDrmFormatModifierProperties()eitherNULLor a pointer to an array ofVkDrmFormatModifierProperties2EXTstructures.longpNext()NULLor a pointer to a structure extending this structure.VkDrmFormatModifierPropertiesList2EXTpNext(long value)Sets the specified value to thepNext()field.VkDrmFormatModifierPropertiesList2EXTset(int sType, long pNext)Initializes this struct with the specified values.VkDrmFormatModifierPropertiesList2EXTset(VkDrmFormatModifierPropertiesList2EXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDrmFormatModifierPropertiesList2EXTsType(int value)Sets the specified value to thesType()field.VkDrmFormatModifierPropertiesList2EXTsType$Default()Sets theSTRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDrmFormatModifierPropertiesList2EXT
public VkDrmFormatModifierPropertiesList2EXT(java.nio.ByteBuffer container)
Creates aVkDrmFormatModifierPropertiesList2EXTinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
drmFormatModifierCount
public int drmFormatModifierCount()
an inout parameter related to the number of modifiers compatible with theformat, as described below.
-
pDrmFormatModifierProperties
@Nullable public VkDrmFormatModifierProperties2EXT.Buffer pDrmFormatModifierProperties()
eitherNULLor a pointer to an array ofVkDrmFormatModifierProperties2EXTstructures.
-
sType
public VkDrmFormatModifierPropertiesList2EXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDrmFormatModifierPropertiesList2EXT sType$Default()
Sets theSTRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXTvalue to thesType()field.
-
pNext
public VkDrmFormatModifierPropertiesList2EXT pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkDrmFormatModifierPropertiesList2EXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkDrmFormatModifierPropertiesList2EXT set(VkDrmFormatModifierPropertiesList2EXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDrmFormatModifierPropertiesList2EXT malloc()
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDrmFormatModifierPropertiesList2EXT calloc()
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDrmFormatModifierPropertiesList2EXT create()
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated withBufferUtils.
-
create
public static VkDrmFormatModifierPropertiesList2EXT create(long address)
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDrmFormatModifierPropertiesList2EXT createSafe(long address)
-
malloc
public static VkDrmFormatModifierPropertiesList2EXT.Buffer malloc(int capacity)
Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDrmFormatModifierPropertiesList2EXT.Buffer calloc(int capacity)
Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDrmFormatModifierPropertiesList2EXT.Buffer create(int capacity)
Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDrmFormatModifierPropertiesList2EXT.Buffer create(long address, int capacity)
Create aVkDrmFormatModifierPropertiesList2EXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDrmFormatModifierPropertiesList2EXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDrmFormatModifierPropertiesList2EXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDrmFormatModifierPropertiesList2EXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrmFormatModifierPropertiesList2EXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDrmFormatModifierPropertiesList2EXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDrmFormatModifierPropertiesList2EXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrmFormatModifierPropertiesList2EXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ndrmFormatModifierCount
public static int ndrmFormatModifierCount(long struct)
Unsafe version ofdrmFormatModifierCount().
-
npDrmFormatModifierProperties
@Nullable public static VkDrmFormatModifierProperties2EXT.Buffer npDrmFormatModifierProperties(long struct)
Unsafe version ofpDrmFormatModifierProperties().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-