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.NativeResourceStructure specifying the parameters used for device queue creation.Description
The queue returned by
vkGetDeviceQueue2must have the sameflagsvalue from this structure as that used at device creation time in aVkDeviceQueueCreateInfoinstance. If no matchingflagswere specified at device creation time thenpQueuewill returnNULL_HANDLE.Valid Usage
queueFamilyIndexmust be one of the queue family indices specified whendevicewas created, via theVkDeviceQueueCreateInfostructurequeueIndexmust be less than the number of queues created for the specified queue family index andVkDeviceQueueCreateFlagsmemberflagsequal to thisflagsvalue whendevicewas created, via thequeueCountmember of theVkDeviceQueueCreateInfostructure
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_INFO_2pNextmust beNULLflagsmust be a valid combination ofVkDeviceQueueCreateFlagBitsvaluesflagsmust not be 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure. ThepNextchain ofVkDeviceQueueInfo2is used to provide additional image parameters tovkGetDeviceQueue2.flags– aVkDeviceQueueCreateFlagsvalue 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 classVkDeviceQueueInfo2.BufferAn array ofVkDeviceQueueInfo2structs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PNEXT
QUEUEFAMILYINDEX
QUEUEINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceQueueInfo2(java.nio.ByteBuffer container)Creates aVkDeviceQueueInfo2instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceQueueInfo2calloc()Returns a newVkDeviceQueueInfo2instance allocated withmemCalloc.static VkDeviceQueueInfo2.Buffercalloc(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withmemCalloc.static VkDeviceQueueInfo2callocStack()Returns a newVkDeviceQueueInfo2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2.BuffercallocStack(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2callocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2create()Returns a newVkDeviceQueueInfo2instance allocated withBufferUtils.static VkDeviceQueueInfo2.Buffercreate(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withBufferUtils.static VkDeviceQueueInfo2create(long address)Returns a newVkDeviceQueueInfo2instance for the specified memory address.static VkDeviceQueueInfo2.Buffercreate(long address, int capacity)Create aVkDeviceQueueInfo2.Bufferinstance at the specified memory.static VkDeviceQueueInfo2createSafe(long address)static VkDeviceQueueInfo2.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkDeviceQueueInfo2flags(int value)Sets the specified value to theflagsfield.static VkDeviceQueueInfo2malloc()Returns a newVkDeviceQueueInfo2instance allocated withmemAlloc.static VkDeviceQueueInfo2.Buffermalloc(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withmemAlloc.static VkDeviceQueueInfo2mallocStack()Returns a newVkDeviceQueueInfo2instance allocated on the thread-localMemoryStack.static VkDeviceQueueInfo2.BuffermallocStack(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceQueueInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnqueueFamilyIndex(long struct)Unsafe version ofqueueFamilyIndex().static voidnqueueFamilyIndex(long struct, int value)Unsafe version ofqueueFamilyIndex.static intnqueueIndex(long struct)Unsafe version ofqueueIndex().static voidnqueueIndex(long struct, int value)Unsafe version ofqueueIndex.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkDeviceQueueInfo2pNext(long value)Sets the specified value to thepNextfield.intqueueFamilyIndex()Returns the value of thequeueFamilyIndexfield.VkDeviceQueueInfo2queueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndexfield.intqueueIndex()Returns the value of thequeueIndexfield.VkDeviceQueueInfo2queueIndex(int value)Sets the specified value to thequeueIndexfield.VkDeviceQueueInfo2set(int sType, long pNext, int flags, int queueFamilyIndex, int queueIndex)Initializes this struct with the specified values.VkDeviceQueueInfo2set(VkDeviceQueueInfo2 src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDeviceQueueInfo2sType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkDeviceQueueInfo2
public VkDeviceQueueInfo2(java.nio.ByteBuffer container)
Creates aVkDeviceQueueInfo2instance 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.
-
flags
public int flags()
Returns the value of theflagsfield.
-
queueFamilyIndex
public int queueFamilyIndex()
Returns the value of thequeueFamilyIndexfield.
-
queueIndex
public int queueIndex()
Returns the value of thequeueIndexfield.
-
sType
public VkDeviceQueueInfo2 sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceQueueInfo2 pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDeviceQueueInfo2 flags(int value)
Sets the specified value to theflagsfield.
-
queueFamilyIndex
public VkDeviceQueueInfo2 queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndexfield.
-
queueIndex
public VkDeviceQueueInfo2 queueIndex(int value)
Sets the specified value to thequeueIndexfield.
-
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 newVkDeviceQueueInfo2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueInfo2 calloc()
Returns a newVkDeviceQueueInfo2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceQueueInfo2 create()
Returns a newVkDeviceQueueInfo2instance allocated withBufferUtils.
-
create
public static VkDeviceQueueInfo2 create(long address)
Returns a newVkDeviceQueueInfo2instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceQueueInfo2 createSafe(long address)
-
malloc
public static VkDeviceQueueInfo2.Buffer malloc(int capacity)
Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceQueueInfo2.Buffer calloc(int capacity)
Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueInfo2.Buffer create(int capacity)
Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueInfo2.Buffer create(long address, int capacity)
Create aVkDeviceQueueInfo2.Bufferinstance 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 newVkDeviceQueueInfo2instance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceQueueInfo2 callocStack()
Returns a newVkDeviceQueueInfo2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceQueueInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceQueueInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceQueueInfo2.Buffer callocStack(int capacity)
Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-