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 aVkDeviceQueueCreateInfostructure. If no matchingflagswere specified at device creation time, then the handle returned inpQueuemust beNULL.Valid Usage
queueFamilyIndexmust be one of the queue family indices specified whendevicewas created, via theVkDeviceQueueCreateInfostructureflagsmust be equal toVkDeviceQueueCreateInfo::flagsfor aVkDeviceQueueCreateInfostructure for the queue family indicated byqueueFamilyIndexwhendevicewas createdqueueIndexmust be less thanVkDeviceQueueCreateInfo::queueCountfor the corresponding queue family and flags indicated byqueueFamilyIndexandflagswhendevicewas created
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_INFO_2pNextmust beNULLflagsmust be a valid combination ofVkDeviceQueueCreateFlagBitsvalues
See Also
Layout
struct VkDeviceQueueInfo2 { VkStructureTypesType(); void const *pNext(); VkDeviceQueueCreateFlagsflags(); uint32_tqueueFamilyIndex(); uint32_tqueueIndex(); }
-
-
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 Deprecated 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 VkDeviceQueueInfo2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueInfo2callocStack()Deprecated.static VkDeviceQueueInfo2.BuffercallocStack(int capacity)Deprecated.static VkDeviceQueueInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceQueueInfo2callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkDeviceQueueCreateFlagsvalue indicating the flags used to create the device queue.VkDeviceQueueInfo2flags(int value)Sets the specified value to theflags()field.static VkDeviceQueueInfo2malloc()Returns a newVkDeviceQueueInfo2instance allocated withmemAlloc.static VkDeviceQueueInfo2.Buffermalloc(int capacity)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated withmemAlloc.static VkDeviceQueueInfo2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueInfo2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStack.static VkDeviceQueueInfo2mallocStack()Deprecated.static VkDeviceQueueInfo2.BuffermallocStack(int capacity)Deprecated.static VkDeviceQueueInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceQueueInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkDeviceQueueInfo2pNext(long value)Sets the specified value to thepNext()field.intqueueFamilyIndex()the index of the queue family to which the queue belongs.VkDeviceQueueInfo2queueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndex()field.intqueueIndex()the index within this queue family of the queue to retrieve.VkDeviceQueueInfo2queueIndex(int value)Sets the specified value to thequeueIndex()field.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()the type of this structure.VkDeviceQueueInfo2sType(int value)Sets the specified value to thesType()field.VkDeviceQueueInfo2sType$Default()Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_INFO_2value to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure. ThepNextchain ofVkDeviceQueueInfo2can be used to provide additional device queue parameters tovkGetDeviceQueue2.
-
flags
public int flags()
aVkDeviceQueueCreateFlagsvalue indicating the flags used to create the device queue.
-
queueFamilyIndex
public int queueFamilyIndex()
the index of the queue family to which the queue belongs.
-
queueIndex
public int queueIndex()
the index within this queue family of the queue to retrieve.
-
sType
public VkDeviceQueueInfo2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceQueueInfo2 sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_INFO_2value 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 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
@Deprecated public static VkDeviceQueueInfo2 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueInfo2 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueInfo2.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueInfo2.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDeviceQueueInfo2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceQueueInfo2 calloc(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
-
malloc
public static VkDeviceQueueInfo2.Buffer malloc(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
-
calloc
public static VkDeviceQueueInfo2.Buffer calloc(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.
-
-