Package org.lwjgl.vulkan
Class VkImageDrmFormatModifierPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageDrmFormatModifierPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageDrmFormatModifierPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProperties of an image's Linux DRM format modifier.Description
If the
imagewas created withVkImageDrmFormatModifierListCreateInfoEXT, then the returneddrmFormatModifiermust belong to the list of modifiers provided at time of image creation inVkImageDrmFormatModifierListCreateInfoEXT::pDrmFormatModifiers. If theimagewas created withVkImageDrmFormatModifierExplicitCreateInfoEXT, then the returneddrmFormatModifiermust be the modifier provided at time of image creation inVkImageDrmFormatModifierExplicitCreateInfoEXT::drmFormatModifier.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXTpNextmust beNULL
See Also
GetImageDrmFormatModifierPropertiesEXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.drmFormatModifier– returns the image’s Linux DRM format modifier.
Layout
struct VkImageDrmFormatModifierPropertiesEXT { VkStructureType sType; void * pNext; uint64_t drmFormatModifier; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageDrmFormatModifierPropertiesEXT.BufferAn array ofVkImageDrmFormatModifierPropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDRMFORMATMODIFIER
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageDrmFormatModifierPropertiesEXT(java.nio.ByteBuffer container)Creates aVkImageDrmFormatModifierPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageDrmFormatModifierPropertiesEXTcalloc()Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withmemCalloc.static VkImageDrmFormatModifierPropertiesEXT.Buffercalloc(int capacity)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkImageDrmFormatModifierPropertiesEXTcallocStack()Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageDrmFormatModifierPropertiesEXT.BuffercallocStack(int capacity)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageDrmFormatModifierPropertiesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageDrmFormatModifierPropertiesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageDrmFormatModifierPropertiesEXTcreate()Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withBufferUtils.static VkImageDrmFormatModifierPropertiesEXT.Buffercreate(int capacity)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withBufferUtils.static VkImageDrmFormatModifierPropertiesEXTcreate(long address)Returns a newVkImageDrmFormatModifierPropertiesEXTinstance for the specified memory address.static VkImageDrmFormatModifierPropertiesEXT.Buffercreate(long address, int capacity)Create aVkImageDrmFormatModifierPropertiesEXT.Bufferinstance at the specified memory.static VkImageDrmFormatModifierPropertiesEXTcreateSafe(long address)static VkImageDrmFormatModifierPropertiesEXT.BuffercreateSafe(long address, int capacity)longdrmFormatModifier()Returns the value of thedrmFormatModifierfield.static VkImageDrmFormatModifierPropertiesEXTmalloc()Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withmemAlloc.static VkImageDrmFormatModifierPropertiesEXT.Buffermalloc(int capacity)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withmemAlloc.static VkImageDrmFormatModifierPropertiesEXTmallocStack()Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the thread-localMemoryStack.static VkImageDrmFormatModifierPropertiesEXT.BuffermallocStack(int capacity)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkImageDrmFormatModifierPropertiesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkImageDrmFormatModifierPropertiesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the specifiedMemoryStack.static longndrmFormatModifier(long struct)Unsafe version ofdrmFormatModifier().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.longpNext()Returns the value of thepNextfield.VkImageDrmFormatModifierPropertiesEXTpNext(long value)Sets the specified value to thepNextfield.VkImageDrmFormatModifierPropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkImageDrmFormatModifierPropertiesEXTset(VkImageDrmFormatModifierPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImageDrmFormatModifierPropertiesEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkImageDrmFormatModifierPropertiesEXT
public VkImageDrmFormatModifierPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkImageDrmFormatModifierPropertiesEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
drmFormatModifier
public long drmFormatModifier()
Returns the value of thedrmFormatModifierfield.
-
sType
public VkImageDrmFormatModifierPropertiesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageDrmFormatModifierPropertiesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
set
public VkImageDrmFormatModifierPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkImageDrmFormatModifierPropertiesEXT set(VkImageDrmFormatModifierPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageDrmFormatModifierPropertiesEXT malloc()
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageDrmFormatModifierPropertiesEXT calloc()
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageDrmFormatModifierPropertiesEXT create()
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkImageDrmFormatModifierPropertiesEXT create(long address)
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageDrmFormatModifierPropertiesEXT createSafe(long address)
-
malloc
public static VkImageDrmFormatModifierPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageDrmFormatModifierPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageDrmFormatModifierPropertiesEXT.Buffer create(int capacity)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageDrmFormatModifierPropertiesEXT.Buffer create(long address, int capacity)
Create aVkImageDrmFormatModifierPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageDrmFormatModifierPropertiesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageDrmFormatModifierPropertiesEXT mallocStack()
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageDrmFormatModifierPropertiesEXT callocStack()
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageDrmFormatModifierPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageDrmFormatModifierPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageDrmFormatModifierPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageDrmFormatModifierPropertiesEXT.Buffer mallocStack(int capacity)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageDrmFormatModifierPropertiesEXT.Buffer callocStack(int capacity)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageDrmFormatModifierPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageDrmFormatModifierPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageDrmFormatModifierPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageDrmFormatModifierPropertiesEXT.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().
-
ndrmFormatModifier
public static long ndrmFormatModifier(long struct)
Unsafe version ofdrmFormatModifier().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-