public class VkImageDrmFormatModifierPropertiesEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the image was created with VkImageDrmFormatModifierListCreateInfoEXT, then the returned drmFormatModifier must belong to the list of modifiers provided at time of image creation in VkImageDrmFormatModifierListCreateInfoEXT::pDrmFormatModifiers. If the image was created with VkImageDrmFormatModifierExplicitCreateInfoEXT, then the returned drmFormatModifier must be the modifier provided at time of image creation in VkImageDrmFormatModifierExplicitCreateInfoEXT::drmFormatModifier.
sType must be STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXTpNext must be NULLGetImageDrmFormatModifierPropertiesEXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.drmFormatModifier – returns the image’s Linux DRM format modifier.
struct VkImageDrmFormatModifierPropertiesEXT {
VkStructureType sType;
void * pNext;
uint64_t drmFormatModifier;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageDrmFormatModifierPropertiesEXT.Buffer
An array of
VkImageDrmFormatModifierPropertiesEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DRMFORMATMODIFIER
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageDrmFormatModifierPropertiesEXT(java.nio.ByteBuffer container)
Creates a
VkImageDrmFormatModifierPropertiesEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageDrmFormatModifierPropertiesEXT |
calloc()
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated with memCalloc. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
calloc(int capacity)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with memCalloc. |
static VkImageDrmFormatModifierPropertiesEXT |
callocStack()
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
callocStack(int capacity)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageDrmFormatModifierPropertiesEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageDrmFormatModifierPropertiesEXT |
create()
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated with BufferUtils. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
create(int capacity)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with BufferUtils. |
static VkImageDrmFormatModifierPropertiesEXT |
create(long address)
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance for the specified memory address. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
create(long address,
int capacity)
Create a
VkImageDrmFormatModifierPropertiesEXT.Buffer instance at the specified memory. |
static VkImageDrmFormatModifierPropertiesEXT |
createSafe(long address)
|
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
createSafe(long address,
int capacity)
|
long |
drmFormatModifier()
Returns the value of the
drmFormatModifier field. |
static VkImageDrmFormatModifierPropertiesEXT |
malloc()
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated with memAlloc. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
malloc(int capacity)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with memAlloc. |
static VkImageDrmFormatModifierPropertiesEXT |
mallocStack()
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated on the thread-local MemoryStack. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageDrmFormatModifierPropertiesEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the specified MemoryStack. |
static VkImageDrmFormatModifierPropertiesEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageDrmFormatModifierPropertiesEXT instance allocated on the specified MemoryStack. |
static long |
ndrmFormatModifier(long struct)
Unsafe version of
drmFormatModifier(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageDrmFormatModifierPropertiesEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageDrmFormatModifierPropertiesEXT |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkImageDrmFormatModifierPropertiesEXT |
set(VkImageDrmFormatModifierPropertiesEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageDrmFormatModifierPropertiesEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DRMFORMATMODIFIER
public VkImageDrmFormatModifierPropertiesEXT(java.nio.ByteBuffer container)
VkImageDrmFormatModifierPropertiesEXT instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long drmFormatModifier()
drmFormatModifier field.public VkImageDrmFormatModifierPropertiesEXT sType(int value)
sType field.public VkImageDrmFormatModifierPropertiesEXT pNext(long value)
pNext field.public VkImageDrmFormatModifierPropertiesEXT set(int sType, long pNext)
public VkImageDrmFormatModifierPropertiesEXT set(VkImageDrmFormatModifierPropertiesEXT src)
src - the source structpublic static VkImageDrmFormatModifierPropertiesEXT malloc()
VkImageDrmFormatModifierPropertiesEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageDrmFormatModifierPropertiesEXT calloc()
VkImageDrmFormatModifierPropertiesEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageDrmFormatModifierPropertiesEXT create()
VkImageDrmFormatModifierPropertiesEXT instance allocated with BufferUtils.public static VkImageDrmFormatModifierPropertiesEXT create(long address)
VkImageDrmFormatModifierPropertiesEXT instance for the specified memory address.@Nullable public static VkImageDrmFormatModifierPropertiesEXT createSafe(long address)
public static VkImageDrmFormatModifierPropertiesEXT.Buffer malloc(int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer calloc(int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer create(int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer create(long address, int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageDrmFormatModifierPropertiesEXT.Buffer createSafe(long address, int capacity)
public static VkImageDrmFormatModifierPropertiesEXT mallocStack()
VkImageDrmFormatModifierPropertiesEXT instance allocated on the thread-local MemoryStack.public static VkImageDrmFormatModifierPropertiesEXT callocStack()
VkImageDrmFormatModifierPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageDrmFormatModifierPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageDrmFormatModifierPropertiesEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageDrmFormatModifierPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkImageDrmFormatModifierPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageDrmFormatModifierPropertiesEXT.Buffer mallocStack(int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer callocStack(int capacity)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageDrmFormatModifierPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageDrmFormatModifierPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long ndrmFormatModifier(long struct)
drmFormatModifier().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.