Package org.lwjgl.vulkan
Class VkDeviceQueueInfo2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceQueueInfo2
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDeviceQueueInfo2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying the parameters used for device queue creation.Description
The queue returned by
vkGetDeviceQueue2
must have the sameflags
value from this structure as that used at device creation time in aVkDeviceQueueCreateInfo
instance. If no matchingflags
were specified at device creation time thenpQueue
will returnNULL_HANDLE
.Valid Usage
queueFamilyIndex
must be one of the queue family indices specified whendevice
was created, via theVkDeviceQueueCreateInfo
structurequeueIndex
must be less than the number of queues created for the specified queue family index andVkDeviceQueueCreateFlags
memberflags
equal to thisflags
value whendevice
was created, via thequeueCount
member of theVkDeviceQueueCreateInfo
structure
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEVICE_QUEUE_INFO_2
pNext
must beNULL
flags
must be a valid combination ofVkDeviceQueueCreateFlagBits
valuesflags
must not be 0
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure. ThepNext
chain ofVkDeviceQueueInfo2
is used to provide additional image parameters tovkGetDeviceQueue2
.flags
– aVkDeviceQueueCreateFlags
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.
Layout
struct VkDeviceQueueInfo2 { VkStructureType sType; void const * pNext; VkDeviceQueueCreateFlags flags; uint32_t queueFamilyIndex; uint32_t queueIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDeviceQueueInfo2.Buffer
An array ofVkDeviceQueueInfo2
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FLAGS
PNEXT
QUEUEFAMILYINDEX
QUEUEINDEXThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceQueueInfo2(java.nio.ByteBuffer container)
Creates aVkDeviceQueueInfo2
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceQueueInfo2
calloc()
Returns a newVkDeviceQueueInfo2
instance allocated withmemCalloc
.static VkDeviceQueueInfo2.Buffer
calloc(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withmemCalloc
.static VkDeviceQueueInfo2
callocStack()
Returns a newVkDeviceQueueInfo2
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueInfo2.Buffer
callocStack(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueInfo2.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueInfo2
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueInfo2
create()
Returns a newVkDeviceQueueInfo2
instance allocated withBufferUtils
.static VkDeviceQueueInfo2.Buffer
create(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withBufferUtils
.static VkDeviceQueueInfo2
create(long address)
Returns a newVkDeviceQueueInfo2
instance for the specified memory address.static VkDeviceQueueInfo2.Buffer
create(long address, int capacity)
Create aVkDeviceQueueInfo2.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 theflags
field.VkDeviceQueueInfo2
flags(int value)
Sets the specified value to theflags
field.static VkDeviceQueueInfo2
malloc()
Returns a newVkDeviceQueueInfo2
instance allocated withmemAlloc
.static VkDeviceQueueInfo2.Buffer
malloc(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withmemAlloc
.static VkDeviceQueueInfo2
mallocStack()
Returns a newVkDeviceQueueInfo2
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueInfo2.Buffer
mallocStack(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueInfo2.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceQueueInfo2
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nqueueFamilyIndex(long struct)
Unsafe version ofqueueFamilyIndex()
.static void
nqueueFamilyIndex(long struct, int value)
Unsafe version ofqueueFamilyIndex
.static int
nqueueIndex(long struct)
Unsafe version ofqueueIndex()
.static void
nqueueIndex(long struct, int value)
Unsafe version ofqueueIndex
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkDeviceQueueInfo2
pNext(long value)
Sets the specified value to thepNext
field.int
queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.VkDeviceQueueInfo2
queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex
field.int
queueIndex()
Returns the value of thequeueIndex
field.VkDeviceQueueInfo2
queueIndex(int value)
Sets the specified value to thequeueIndex
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 thesType
field.VkDeviceQueueInfo2
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkDeviceQueueInfo2
public VkDeviceQueueInfo2(java.nio.ByteBuffer container)
Creates aVkDeviceQueueInfo2
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
queueFamilyIndex
public int queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.
-
queueIndex
public int queueIndex()
Returns the value of thequeueIndex
field.
-
sType
public VkDeviceQueueInfo2 sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDeviceQueueInfo2 pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkDeviceQueueInfo2 flags(int value)
Sets the specified value to theflags
field.
-
queueFamilyIndex
public VkDeviceQueueInfo2 queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex
field.
-
queueIndex
public VkDeviceQueueInfo2 queueIndex(int value)
Sets the specified value to thequeueIndex
field.
-
set
public VkDeviceQueueInfo2 set(int sType, long pNext, int flags, int queueFamilyIndex, int queueIndex)
Initializes this struct with the specified values.
-
set
public VkDeviceQueueInfo2 set(VkDeviceQueueInfo2 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceQueueInfo2 malloc()
Returns a newVkDeviceQueueInfo2
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueInfo2 calloc()
Returns a newVkDeviceQueueInfo2
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceQueueInfo2 create()
Returns a newVkDeviceQueueInfo2
instance allocated withBufferUtils
.
-
create
public static VkDeviceQueueInfo2 create(long address)
Returns a newVkDeviceQueueInfo2
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceQueueInfo2 createSafe(long address)
-
malloc
public static VkDeviceQueueInfo2.Buffer malloc(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceQueueInfo2.Buffer calloc(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueInfo2.Buffer create(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueInfo2.Buffer create(long address, int capacity)
Create aVkDeviceQueueInfo2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDeviceQueueInfo2.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceQueueInfo2 mallocStack()
Returns a newVkDeviceQueueInfo2
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceQueueInfo2 callocStack()
Returns a newVkDeviceQueueInfo2
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceQueueInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceQueueInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDeviceQueueInfo2.Buffer mallocStack(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceQueueInfo2.Buffer callocStack(int capacity)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceQueueInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDeviceQueueInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
nqueueFamilyIndex
public static int nqueueFamilyIndex(long struct)
Unsafe version ofqueueFamilyIndex()
.
-
nqueueIndex
public static int nqueueIndex(long struct)
Unsafe version ofqueueIndex()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
nqueueFamilyIndex
public static void nqueueFamilyIndex(long struct, int value)
Unsafe version ofqueueFamilyIndex
.
-
nqueueIndex
public static void nqueueIndex(long struct, int value)
Unsafe version ofqueueIndex
.
-
-