public class VkDeviceQueueInfo2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The queue returned by vkGetDeviceQueue2 must have the same flags value from this structure as that used at device creation time in a VkDeviceQueueCreateInfo instance. If no matching flags were specified at device creation time then pQueue will return NULL_HANDLE.
queueFamilyIndex must be one of the queue family indices specified when device was created, via the VkDeviceQueueCreateInfo structurequeueIndex must be less than the number of queues created for the specified queue family index and VkDeviceQueueCreateFlags member flags equal to this flags value when device was created, via the queueCount member of the VkDeviceQueueCreateInfo structuresType must be STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2pNext must be NULLflags must be a valid combination of VkDeviceQueueCreateFlagBits valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure. The pNext chain of VkDeviceQueueInfo2 is used to provide additional image parameters to vkGetDeviceQueue2.flags – a VkDeviceQueueCreateFlags value indicating the flags used to create the device queue.queueFamilyIndex – the index of the queue family to which the queue belongs.queueIndex – the index within this queue family of the queue to retrieve.
struct VkDeviceQueueInfo2 {
VkStructureType sType;
void const * pNext;
VkDeviceQueueCreateFlags flags;
uint32_t queueFamilyIndex;
uint32_t queueIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDeviceQueueInfo2.Buffer
An array of
VkDeviceQueueInfo2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
QUEUEFAMILYINDEX
The struct member offsets.
|
static int |
QUEUEINDEX
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDeviceQueueInfo2(java.nio.ByteBuffer container)
Creates a
VkDeviceQueueInfo2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDeviceQueueInfo2 |
calloc()
Returns a new
VkDeviceQueueInfo2 instance allocated with memCalloc. |
static VkDeviceQueueInfo2.Buffer |
calloc(int capacity)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated with memCalloc. |
static VkDeviceQueueInfo2 |
callocStack()
Returns a new
VkDeviceQueueInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueInfo2.Buffer |
callocStack(int capacity)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueInfo2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueInfo2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDeviceQueueInfo2 |
create()
Returns a new
VkDeviceQueueInfo2 instance allocated with BufferUtils. |
static VkDeviceQueueInfo2.Buffer |
create(int capacity)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated with BufferUtils. |
static VkDeviceQueueInfo2 |
create(long address)
Returns a new
VkDeviceQueueInfo2 instance for the specified memory address. |
static VkDeviceQueueInfo2.Buffer |
create(long address,
int capacity)
Create a
VkDeviceQueueInfo2.Buffer instance at the specified memory. |
static VkDeviceQueueInfo2 |
createSafe(long address)
|
static VkDeviceQueueInfo2.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkDeviceQueueInfo2 |
flags(int value)
Sets the specified value to the
flags field. |
static VkDeviceQueueInfo2 |
malloc()
Returns a new
VkDeviceQueueInfo2 instance allocated with memAlloc. |
static VkDeviceQueueInfo2.Buffer |
malloc(int capacity)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated with memAlloc. |
static VkDeviceQueueInfo2 |
mallocStack()
Returns a new
VkDeviceQueueInfo2 instance allocated on the thread-local MemoryStack. |
static VkDeviceQueueInfo2.Buffer |
mallocStack(int capacity)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated on the thread-local MemoryStack. |
static VkDeviceQueueInfo2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueInfo2.Buffer instance allocated on the specified MemoryStack. |
static VkDeviceQueueInfo2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDeviceQueueInfo2 instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nqueueFamilyIndex(long struct)
Unsafe version of
queueFamilyIndex(). |
static void |
nqueueFamilyIndex(long struct,
int value)
Unsafe version of
queueFamilyIndex. |
static int |
nqueueIndex(long struct)
Unsafe version of
queueIndex(). |
static void |
nqueueIndex(long struct,
int value)
Unsafe version of
queueIndex. |
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. |
VkDeviceQueueInfo2 |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
queueFamilyIndex()
Returns the value of the
queueFamilyIndex field. |
VkDeviceQueueInfo2 |
queueFamilyIndex(int value)
Sets the specified value to the
queueFamilyIndex field. |
int |
queueIndex()
Returns the value of the
queueIndex field. |
VkDeviceQueueInfo2 |
queueIndex(int value)
Sets the specified value to the
queueIndex field. |
VkDeviceQueueInfo2 |
set(int sType,
long pNext,
int flags,
int queueFamilyIndex,
int queueIndex)
Initializes this struct with the specified values.
|
VkDeviceQueueInfo2 |
set(VkDeviceQueueInfo2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDeviceQueueInfo2 |
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 FLAGS
public static final int QUEUEFAMILYINDEX
public static final int QUEUEINDEX
public VkDeviceQueueInfo2(java.nio.ByteBuffer container)
VkDeviceQueueInfo2 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 int flags()
flags field.public int queueFamilyIndex()
queueFamilyIndex field.public int queueIndex()
queueIndex field.public VkDeviceQueueInfo2 sType(int value)
sType field.public VkDeviceQueueInfo2 pNext(long value)
pNext field.public VkDeviceQueueInfo2 flags(int value)
flags field.public VkDeviceQueueInfo2 queueFamilyIndex(int value)
queueFamilyIndex field.public VkDeviceQueueInfo2 queueIndex(int value)
queueIndex field.public VkDeviceQueueInfo2 set(int sType, long pNext, int flags, int queueFamilyIndex, int queueIndex)
public VkDeviceQueueInfo2 set(VkDeviceQueueInfo2 src)
src - the source structpublic static VkDeviceQueueInfo2 malloc()
VkDeviceQueueInfo2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkDeviceQueueInfo2 calloc()
VkDeviceQueueInfo2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkDeviceQueueInfo2 create()
VkDeviceQueueInfo2 instance allocated with BufferUtils.public static VkDeviceQueueInfo2 create(long address)
VkDeviceQueueInfo2 instance for the specified memory address.@Nullable public static VkDeviceQueueInfo2 createSafe(long address)
public static VkDeviceQueueInfo2.Buffer malloc(int capacity)
VkDeviceQueueInfo2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer calloc(int capacity)
VkDeviceQueueInfo2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer create(int capacity)
VkDeviceQueueInfo2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer create(long address, int capacity)
VkDeviceQueueInfo2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDeviceQueueInfo2.Buffer createSafe(long address, int capacity)
public static VkDeviceQueueInfo2 mallocStack()
VkDeviceQueueInfo2 instance allocated on the thread-local MemoryStack.public static VkDeviceQueueInfo2 callocStack()
VkDeviceQueueInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDeviceQueueInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceQueueInfo2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDeviceQueueInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
VkDeviceQueueInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDeviceQueueInfo2.Buffer mallocStack(int capacity)
VkDeviceQueueInfo2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer callocStack(int capacity)
VkDeviceQueueInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceQueueInfo2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDeviceQueueInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDeviceQueueInfo2.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 int nflags(long struct)
flags().public static int nqueueFamilyIndex(long struct)
queueFamilyIndex().public static int nqueueIndex(long struct)
queueIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nqueueFamilyIndex(long struct,
int value)
queueFamilyIndex.public static void nqueueIndex(long struct,
int value)
queueIndex.Copyright LWJGL. All Rights Reserved. License terms.