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, NativeResource, Pointer
public class VkDeviceQueueCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how to create a device queue.
Valid Usage
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOpNextmust beNULLflagsmust be 0pQueuePrioritiesmust be a pointer to an array ofqueueCountfloatvaluesqueueCountmust be greater than 0queueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byGetPhysicalDeviceQueueFamilyPropertiesqueueCountmust be less than or equal to thequeueCountmember of theVkQueueFamilyPropertiesstructure, as returned byGetPhysicalDeviceQueueFamilyPropertiesin thepQueueFamilyProperties[queueFamilyIndex]- Each element of
pQueuePrioritiesmust be between0.0and1.0inclusive
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future usequeueFamilyIndex– an unsigned integer indicating the index of the queue family to create on this devicequeueCount– an unsigned integer specifying the number of queues to create in the queue family indicated byqueueFamilyIndexpQueuePriorities– an array ofqueueCountnormalized floating point values, specifying priorities of work that will be submitted to each created queue
Layout
struct VkDeviceQueueCreateInfo { VkStructureType sType; const void * pNext; VkDeviceQueueCreateFlags flags; uint32_t queueFamilyIndex; uint32_t queueCount; const float * pQueuePriorities; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDeviceQueueCreateInfo.BufferAn array ofVkDeviceQueueCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueCreateInfocallocStack(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 ornullif the address isNULL.static VkDeviceQueueCreateInfo.Buffercreate(long address, int capacity)Create aVkDeviceQueueCreateInfo.Bufferinstance at the specified memory.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, MemoryStack stack)Returns a newVkDeviceQueueCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueCreateInfomallocStack(MemoryStack stack)Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStack.VkDeviceQueueCreateInfonset(long struct)Unsafe version ofset.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()Returns thesizeof(struct).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)CallsVkDeviceQueueCreateInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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.
-
nset
public VkDeviceQueueCreateInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkDeviceQueueCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceQueueCreateInfo callocStack(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, 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, 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
-
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)CallsVkDeviceQueueCreateInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-