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
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOpNextmust beNULLor a pointer to a valid instance ofVkDeviceQueueGlobalPriorityCreateInfoEXTflagsmust be a valid combination ofVkDeviceQueueCreateFlagBitsvaluespQueuePrioritiesmust be a valid pointer to an array ofqueueCountfloatvaluesqueueCountmust be greater than 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask indicating behavior of the queue.queueFamilyIndex– an unsigned integer indicating the index of the queue family to create on this device. This index corresponds to the index of an element of thepQueueFamilyPropertiesarray that was returned byvkGetPhysicalDeviceQueueFamilyProperties.queueCount– an unsigned integer specifying the number of queues to create in the queue family indicated byqueueFamilyIndex.pQueuePriorities– an array ofqueueCountnormalized floating point values, specifying priorities of work that will be submitted to each created queue. See Queue Priority for more information.
Layout
struct VkDeviceQueueCreateInfo { VkStructureType sType; void const * pNext; VkDeviceQueueCreateFlags flags; uint32_t queueFamilyIndex; uint32_t queueCount; 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 Modifier and Type Method Description static VkDeviceQueueCreateInfocalloc()Returns a newVkDeviceQueueCreateInfoinstance allocated withmemCalloc.static VkDeviceQueueCreateInfo.Buffercalloc(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemCalloc.static VkDeviceQueueCreateInfocallocStack()Returns a newVkDeviceQueueCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfo.BuffercallocStack(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theflagsfield.VkDeviceQueueCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkDeviceQueueCreateInfomalloc()Returns a newVkDeviceQueueCreateInfoinstance allocated withmemAlloc.static VkDeviceQueueCreateInfo.Buffermalloc(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated withmemAlloc.static VkDeviceQueueCreateInfomallocStack()Returns a newVkDeviceQueueCreateInfoinstance allocated on the thread-localMemoryStack.static VkDeviceQueueCreateInfo.BuffermallocStack(int capacity)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceQueueCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueCreateInfoinstance 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 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()Returns the value of thepNextfield.VkDeviceQueueCreateInfopNext(long value)Sets the specified value to thepNextfield.java.nio.FloatBufferpQueuePriorities()Returns aFloatBufferview of the data pointed to by thepQueuePrioritiesfield.VkDeviceQueueCreateInfopQueuePriorities(java.nio.FloatBuffer value)Sets the address of the specifiedFloatBufferto thepQueuePrioritiesfield.intqueueCount()Returns the value of thequeueCountfield.intqueueFamilyIndex()Returns the value of thequeueFamilyIndexfield.VkDeviceQueueCreateInfoqueueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndexfield.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()Returns the value of thesTypefield.VkDeviceQueueCreateInfosType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
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()
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.
-
queueCount
public int queueCount()
Returns the value of thequeueCountfield.
-
pQueuePriorities
public java.nio.FloatBuffer pQueuePriorities()
Returns aFloatBufferview of the data pointed to by thepQueuePrioritiesfield.
-
sType
public VkDeviceQueueCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceQueueCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDeviceQueueCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
queueFamilyIndex
public VkDeviceQueueCreateInfo queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndexfield.
-
pQueuePriorities
public VkDeviceQueueCreateInfo pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBufferto thepQueuePrioritiesfield.
-
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
public static VkDeviceQueueCreateInfo mallocStack()
Returns a newVkDeviceQueueCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceQueueCreateInfo callocStack()
Returns a newVkDeviceQueueCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceQueueCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceQueueCreateInfo callocStack(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
-
mallocStack
public static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDeviceQueueCreateInfo.Buffer mallocStack(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
-
callocStack
public static VkDeviceQueueCreateInfo.Buffer callocStack(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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-