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
sType
must beSTRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO
pNext
must beNULL
flags
must be 0pQueuePriorities
must be a pointer to an array ofqueueCount
float
valuesqueueCount
must be greater than 0queueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byGetPhysicalDeviceQueueFamilyProperties
queueCount
must be less than or equal to thequeueCount
member of theVkQueueFamilyProperties
structure, as returned byGetPhysicalDeviceQueueFamilyProperties
in thepQueueFamilyProperties
[queueFamilyIndex
]- Each element of
pQueuePriorities
must be between0.0
and1.0
inclusive
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO
pNext
– 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 byqueueFamilyIndex
pQueuePriorities
– an array ofqueueCount
normalized 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 class
VkDeviceQueueCreateInfo.Buffer
An array ofVkDeviceQueueCreateInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aVkDeviceQueueCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDeviceQueueCreateInfo
calloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemCalloc
.static VkDeviceQueueCreateInfo.Buffer
calloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemCalloc
.static VkDeviceQueueCreateInfo
callocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo
callocStack(MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceQueueCreateInfo
create()
Returns a newVkDeviceQueueCreateInfo
instance allocated withBufferUtils
.static VkDeviceQueueCreateInfo.Buffer
create(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withBufferUtils
.static VkDeviceQueueCreateInfo
create(long address)
Returns a newVkDeviceQueueCreateInfo
instance for the specified memory address ornull
if the address isNULL
.static VkDeviceQueueCreateInfo.Buffer
create(long address, int capacity)
Create aVkDeviceQueueCreateInfo.Buffer
instance at the specified memory.int
flags()
Returns the value of theflags
field.VkDeviceQueueCreateInfo
flags(int value)
Sets the specified value to theflags
field.static VkDeviceQueueCreateInfo
malloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemAlloc
.static VkDeviceQueueCreateInfo.Buffer
malloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemAlloc
.static VkDeviceQueueCreateInfo
mallocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceQueueCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceQueueCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
.VkDeviceQueueCreateInfo
nset(long struct)
Unsafe version ofset
.long
pNext()
Returns the value of thepNext
field.VkDeviceQueueCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.java.nio.FloatBuffer
pQueuePriorities()
Returns aFloatBuffer
view of the data pointed to by thepQueuePriorities
field.VkDeviceQueueCreateInfo
pQueuePriorities(java.nio.FloatBuffer value)
Sets the address of the specifiedFloatBuffer
to thepQueuePriorities
field.int
queueCount()
Returns the value of thequeueCount
field.int
queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.VkDeviceQueueCreateInfo
queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex
field.VkDeviceQueueCreateInfo
set(int sType, long pNext, int flags, int queueFamilyIndex, java.nio.FloatBuffer pQueuePriorities)
Initializes this struct with the specified values.VkDeviceQueueCreateInfo
set(VkDeviceQueueCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
sType()
Returns the value of thesType
field.VkDeviceQueueCreateInfo
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkDeviceQueueCreateInfo
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returns thesizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
queueFamilyIndex
public int queueFamilyIndex()
Returns the value of thequeueFamilyIndex
field.
-
queueCount
public int queueCount()
Returns the value of thequeueCount
field.
-
pQueuePriorities
public java.nio.FloatBuffer pQueuePriorities()
Returns aFloatBuffer
view of the data pointed to by thepQueuePriorities
field.
-
sType
public VkDeviceQueueCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDeviceQueueCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
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 specifiedFloatBuffer
to 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.
-
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 newVkDeviceQueueCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueCreateInfo calloc()
Returns a newVkDeviceQueueCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceQueueCreateInfo create()
Returns a newVkDeviceQueueCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkDeviceQueueCreateInfo create(long address)
Returns a newVkDeviceQueueCreateInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkDeviceQueueCreateInfo.Buffer malloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceQueueCreateInfo.Buffer calloc(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceQueueCreateInfo.Buffer create(long address, int capacity)
Create aVkDeviceQueueCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkDeviceQueueCreateInfo mallocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceQueueCreateInfo callocStack()
Returns a newVkDeviceQueueCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceQueueCreateInfo mallocStack(MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceQueueCreateInfo callocStack(MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceQueueCreateInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDeviceQueueCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDeviceQueueCreateInfo.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-