public class VkPhysicalDeviceImageDrmFormatModifierInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the drmFormatModifier is incompatible with the parameters specified in VkPhysicalDeviceImageFormatInfo2 and its pNext chain, then GetPhysicalDeviceImageFormatProperties2 returns ERROR_FORMAT_NOT_SUPPORTED. The implementation must support the query of any drmFormatModifier, including unknown and invalid modifier values.
sharingMode is SHARING_MODE_CONCURRENT, then pQueueFamilyIndices must be a valid pointer to an array of queueFamilyIndexCount uint32_t values.sharingMode is SHARING_MODE_CONCURRENT, then queueFamilyIndexCount must be greater than 1.sharingMode is SHARING_MODE_CONCURRENT, each element of pQueueFamilyIndices must be unique and must be less than the pQueueFamilyPropertyCount returned by GetPhysicalDeviceQueueFamilyProperties2 for the physicalDevice that was used to create device.sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXTsharingMode must be a valid VkSharingMode valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.drmFormatModifier – the image’s Linux DRM format modifier, corresponding to VkImageDrmFormatModifierExplicitCreateInfoEXT::modifier or to VkImageDrmFormatModifierListCreateInfoEXT::pModifiers.sharingMode – specifies how the image will be accessed by multiple queue families.queueFamilyIndexCount – the number of entries in the pQueueFamilyIndices array.pQueueFamilyIndices – a list of queue families that will access the image (ignored if sharingMode is not SHARING_MODE_CONCURRENT).
struct VkPhysicalDeviceImageDrmFormatModifierInfoEXT {
VkStructureType sType;
void const * pNext;
uint64_t drmFormatModifier;
VkSharingMode sharingMode;
uint32_t queueFamilyIndexCount;
uint32_t const * pQueueFamilyIndices;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer
An array of
VkPhysicalDeviceImageDrmFormatModifierInfoEXT 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 |
PQUEUEFAMILYINDICES
The struct member offsets.
|
static int |
QUEUEFAMILYINDEXCOUNT
The struct member offsets.
|
static int |
SHARINGMODE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceImageDrmFormatModifierInfoEXT(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
calloc()
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with memCalloc. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
callocStack()
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
create()
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with BufferUtils. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
create(long address)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance for the specified memory address. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance at the specified memory. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
createSafe(long address)
|
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
long |
drmFormatModifier()
Returns the value of the
drmFormatModifier field. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
drmFormatModifier(long value)
Sets the specified value to the
drmFormatModifier field. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
malloc()
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with memAlloc. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
mallocStack()
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the specified MemoryStack. |
static long |
ndrmFormatModifier(long struct)
Unsafe version of
drmFormatModifier(). |
static void |
ndrmFormatModifier(long struct,
long value)
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 java.nio.IntBuffer |
npQueueFamilyIndices(long struct)
Unsafe version of
pQueueFamilyIndices. |
static void |
npQueueFamilyIndices(long struct,
java.nio.IntBuffer value)
Unsafe version of
pQueueFamilyIndices. |
static int |
nqueueFamilyIndexCount(long struct)
Unsafe version of
queueFamilyIndexCount(). |
static void |
nqueueFamilyIndexCount(long struct,
int value)
Sets the specified value to the
queueFamilyIndexCount field of the specified struct. |
static int |
nsharingMode(long struct)
Unsafe version of
sharingMode(). |
static void |
nsharingMode(long struct,
int value)
Unsafe version of
sharingMode. |
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. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
pQueueFamilyIndices()
Returns a
IntBuffer view of the data pointed to by the pQueueFamilyIndices field. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pQueueFamilyIndices field. |
int |
queueFamilyIndexCount()
Returns the value of the
queueFamilyIndexCount field. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
set(int sType,
long pNext,
long drmFormatModifier,
int sharingMode,
java.nio.IntBuffer pQueueFamilyIndices)
Initializes this struct with the specified values.
|
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
set(VkPhysicalDeviceImageDrmFormatModifierInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sharingMode()
Returns the value of the
sharingMode field. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
sharingMode(int value)
Sets the specified value to the
sharingMode field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceImageDrmFormatModifierInfoEXT |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
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 static final int SHARINGMODE
public static final int QUEUEFAMILYINDEXCOUNT
public static final int PQUEUEFAMILYINDICES
public VkPhysicalDeviceImageDrmFormatModifierInfoEXT(java.nio.ByteBuffer container)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT 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 int sharingMode()
sharingMode field.public int queueFamilyIndexCount()
queueFamilyIndexCount field.@Nullable public java.nio.IntBuffer pQueueFamilyIndices()
IntBuffer view of the data pointed to by the pQueueFamilyIndices field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT sType(int value)
sType field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT pNext(long value)
pNext field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT drmFormatModifier(long value)
drmFormatModifier field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT sharingMode(int value)
sharingMode field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT pQueueFamilyIndices(@Nullable java.nio.IntBuffer value)
IntBuffer to the pQueueFamilyIndices field.public VkPhysicalDeviceImageDrmFormatModifierInfoEXT set(int sType, long pNext, long drmFormatModifier, int sharingMode, @Nullable java.nio.IntBuffer pQueueFamilyIndices)
public VkPhysicalDeviceImageDrmFormatModifierInfoEXT set(VkPhysicalDeviceImageDrmFormatModifierInfoEXT src)
src - the source structpublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT malloc()
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT calloc()
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT create()
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated with BufferUtils.public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT create(long address)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance for the specified memory address.@Nullable public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT createSafe(long address)
public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer malloc(int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer calloc(int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer create(int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer create(long address, int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT mallocStack()
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT callocStack()
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceImageDrmFormatModifierInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer mallocStack(int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer callocStack(int capacity)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceImageDrmFormatModifierInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceImageDrmFormatModifierInfoEXT.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 int nsharingMode(long struct)
sharingMode().public static int nqueueFamilyIndexCount(long struct)
queueFamilyIndexCount().@Nullable public static java.nio.IntBuffer npQueueFamilyIndices(long struct)
pQueueFamilyIndices.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndrmFormatModifier(long struct,
long value)
drmFormatModifier.public static void nsharingMode(long struct,
int value)
sharingMode.public static void nqueueFamilyIndexCount(long struct,
int value)
queueFamilyIndexCount field of the specified struct.public static void npQueueFamilyIndices(long struct,
@Nullable
java.nio.IntBuffer value)
pQueueFamilyIndices.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.