Package org.lwjgl.vulkan
Class VkDeviceQueueCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceQueueCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceQueueCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created device queue.Valid Usage
queueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byvkGetPhysicalDeviceQueueFamilyPropertiesqueueCountmust be less than or equal to thequeueCountmember of theVkQueueFamilyPropertiesstructure, as returned byvkGetPhysicalDeviceQueueFamilyPropertiesin thepQueueFamilyProperties[queueFamilyIndex]- Each element of
pQueuePrioritiesmust be between0.0and1.0inclusive - If the protected memory feature is not enabled, the
DEVICE_QUEUE_CREATE_PROTECTED_BITbit offlagsmust not be set - If
flagsincludesDEVICE_QUEUE_CREATE_PROTECTED_BIT,queueFamilyIndexmust be the index of a queue family that includes theQUEUE_PROTECTED_BITcapability
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOpNextmust beNULLor a pointer to a valid instance ofVkDeviceQueueGlobalPriorityCreateInfoKHR- The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkDeviceQueueCreateFlagBitsvaluespQueuePrioritiesmust be a valid pointer to an array ofqueueCountfloatvaluesqueueCountmust be greater than 0
See Also
Layout
struct VkDeviceQueueCreateInfo { VkStructureTypesType(); void const *pNext(); VkDeviceQueueCreateFlagsflags(); uint32_tqueueFamilyIndex(); uint32_tqueueCount(); float const *pQueuePriorities(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceQueueCreateInfo.BufferAn array ofVkDeviceQueueCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PNEXT
PQUEUEPRIORITIES
QUEUECOUNT
QUEUEFAMILYINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)Creates aVkDeviceQueueCreateInfoinstance 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 VkDeviceQueueCreateInfocalloc()Returns a newVkDeviceQueueCreateInfoinstance allocated withmemCalloc.static VkDeviceQueueCreateInfo.Buffercalloc(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemCalloc.static VkDeviceQueueCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfocallocStack()Deprecated.static VkDeviceQueueCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkDeviceQueueCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceQueueCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceQueueCreateInfocreate()Returns a newVkDeviceQueueCreateInfoinstance allocated withBufferUtils.static VkDeviceQueueCreateInfo.Buffercreate(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withBufferUtils.static VkDeviceQueueCreateInfocreate(long address)Returns a newVkDeviceQueueCreateInfoinstance for the specified memory address.static VkDeviceQueueCreateInfo.Buffercreate(long address, int capacity)Create aVkDeviceQueueCreateInfo.Bufferinstance at the specified memory.static VkDeviceQueueCreateInfocreateSafe(long address)static VkDeviceQueueCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask indicating behavior of the queue.VkDeviceQueueCreateInfoflags(int value)Sets the specified value to theflags()field.static VkDeviceQueueCreateInfomalloc()Returns a newVkDeviceQueueCreateInfoinstance allocated withmemAlloc.static VkDeviceQueueCreateInfo.Buffermalloc(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemAlloc.static VkDeviceQueueCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStack.static VkDeviceQueueCreateInfomallocStack()Deprecated.static VkDeviceQueueCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkDeviceQueueCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceQueueCreateInfomallocStack(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 java.nio.FloatBuffernpQueuePriorities(long struct)Unsafe version ofpQueuePriorities.static voidnpQueuePriorities(long struct, java.nio.FloatBuffer value)Unsafe version ofpQueuePriorities.static intnqueueCount(long struct)Unsafe version ofqueueCount().static voidnqueueCount(long struct, int value)Sets the specified value to thequeueCountfield of the specifiedstruct.static intnqueueFamilyIndex(long struct)Unsafe version ofqueueFamilyIndex().static voidnqueueFamilyIndex(long struct, int value)Unsafe version ofqueueFamilyIndex.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.VkDeviceQueueCreateInfopNext(long value)Sets the specified value to thepNext()field.VkDeviceQueueCreateInfopNext(VkDeviceQueueGlobalPriorityCreateInfoEXT value)Prepends the specifiedVkDeviceQueueGlobalPriorityCreateInfoEXTvalue to thepNextchain.VkDeviceQueueCreateInfopNext(VkDeviceQueueGlobalPriorityCreateInfoKHR value)Prepends the specifiedVkDeviceQueueGlobalPriorityCreateInfoKHRvalue to thepNextchain.java.nio.FloatBufferpQueuePriorities()a pointer to an array ofqueueCountnormalized floating point values, specifying priorities of work that will be submitted to each created queue.VkDeviceQueueCreateInfopQueuePriorities(java.nio.FloatBuffer value)Sets the address of the specifiedFloatBufferto thepQueuePriorities()field.intqueueCount()an unsigned integer specifying the number of queues to create in the queue family indicated byqueueFamilyIndex.intqueueFamilyIndex()an unsigned integer indicating the index of the queue family in which to create the queue on this device.VkDeviceQueueCreateInfoqueueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndex()field.VkDeviceQueueCreateInfoset(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)Initializes this struct with the specified values.VkDeviceQueueCreateInfoset(VkDeviceQueueCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDeviceQueueCreateInfosType(int value)Sets the specified value to thesType()field.VkDeviceQueueCreateInfosType$Default()Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkDeviceQueueCreateInfo
public VkDeviceQueueCreateInfo(java.nio.ByteBuffer container)
Creates aVkDeviceQueueCreateInfoinstance 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.
-
flags
public int flags()
a bitmask indicating behavior of the queue.
-
queueFamilyIndex
public int queueFamilyIndex()
an unsigned integer indicating the index of the queue family in which to create the queue on this device. This index corresponds to the index of an element of thepQueueFamilyPropertiesarray that was returned byvkGetPhysicalDeviceQueueFamilyProperties.
-
queueCount
public int queueCount()
an unsigned integer specifying the number of queues to create in the queue family indicated byqueueFamilyIndex.
-
pQueuePriorities
public java.nio.FloatBuffer pQueuePriorities()
a pointer to an array ofqueueCountnormalized floating point values, specifying priorities of work that will be submitted to each created queue. See Queue Priority for more information.
-
sType
public VkDeviceQueueCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceQueueCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkDeviceQueueCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkDeviceQueueCreateInfo pNext(VkDeviceQueueGlobalPriorityCreateInfoEXT value)
Prepends the specifiedVkDeviceQueueGlobalPriorityCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkDeviceQueueCreateInfo pNext(VkDeviceQueueGlobalPriorityCreateInfoKHR value)
Prepends the specifiedVkDeviceQueueGlobalPriorityCreateInfoKHRvalue to thepNextchain.
-
flags
public VkDeviceQueueCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
queueFamilyIndex
public VkDeviceQueueCreateInfo queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex()field.
-
pQueuePriorities
public VkDeviceQueueCreateInfo pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBufferto thepQueuePriorities()field.
-
set
public VkDeviceQueueCreateInfo set(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)
Initializes this struct with the specified values.
-
set
public VkDeviceQueueCreateInfo set(VkDeviceQueueCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceQueueCreateInfo malloc()
Returns a newVkDeviceQueueCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueCreateInfo calloc()
Returns a newVkDeviceQueueCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceQueueCreateInfo create()
Returns a newVkDeviceQueueCreateInfoinstance allocated withBufferUtils.
-
create
public static VkDeviceQueueCreateInfo create(long address)
Returns a newVkDeviceQueueCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceQueueCreateInfo createSafe(long address)
-
malloc
public static VkDeviceQueueCreateInfo.Buffer malloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceQueueCreateInfo.Buffer calloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(int capacity)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(long address, int capacity)
Create aVkDeviceQueueCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceQueueCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkDeviceQueueCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceQueueCreateInfo.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 VkDeviceQueueCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDeviceQueueCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceQueueCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceQueueCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceQueueCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.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().
-
nqueueCount
public static int nqueueCount(long struct)
Unsafe version ofqueueCount().
-
npQueuePriorities
public static java.nio.FloatBuffer npQueuePriorities(long struct)
Unsafe version ofpQueuePriorities.
-
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.
-
nqueueCount
public static void nqueueCount(long struct, int value)Sets the specified value to thequeueCountfield of the specifiedstruct.
-
npQueuePriorities
public static void npQueuePriorities(long struct, java.nio.FloatBuffer value)Unsafe version ofpQueuePriorities.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-