Package org.lwjgl.vulkan
Class VkQueueFamilyProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkQueueFamilyProperties
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkQueueFamilyProperties extends Struct
Khronos Reference Page
Vulkan SpecificationContains properties of a queue family.
Member documentation
queueFlags
– contains flags indicating the capabilities of the queues in this queue family. One or more of:QUEUE_COMPUTE_BIT
QUEUE_FAMILY_IGNORED
QUEUE_GRAPHICS_BIT
QUEUE_SPARSE_BINDING_BIT
QUEUE_TRANSFER_BIT
queueCount
– the unsigned integer count of queues in this queue familytimestampValidBits
– the unsigned integer count of meaningful bits in the timestamps written viaCmdWriteTimestamp
minImageTransferGranularity
– the minimum granularity supported for image transfer operations on the queues in this queue family
Layout
struct VkQueueFamilyProperties { VkQueueFlags queueFlags; uint32_t queueCount; uint32_t timestampValidBits;
VkExtent3D
minImageTransferGranularity; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkQueueFamilyProperties.Buffer
An array ofVkQueueFamilyProperties
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 VkQueueFamilyProperties(java.nio.ByteBuffer container)
Creates aVkQueueFamilyProperties
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 VkQueueFamilyProperties
calloc()
Returns a newVkQueueFamilyProperties
instance allocated withmemCalloc
.static VkQueueFamilyProperties.Buffer
calloc(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withmemCalloc
.static VkQueueFamilyProperties
callocStack()
Returns a newVkQueueFamilyProperties
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkQueueFamilyProperties.Buffer
callocStack(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkQueueFamilyProperties.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkQueueFamilyProperties
callocStack(MemoryStack stack)
Returns a newVkQueueFamilyProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkQueueFamilyProperties
create()
Returns a newVkQueueFamilyProperties
instance allocated withBufferUtils
.static VkQueueFamilyProperties.Buffer
create(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withBufferUtils
.static VkQueueFamilyProperties
create(long address)
Returns a newVkQueueFamilyProperties
instance for the specified memory address ornull
if the address isNULL
.static VkQueueFamilyProperties.Buffer
create(long address, int capacity)
Create aVkQueueFamilyProperties.Buffer
instance at the specified memory.static VkQueueFamilyProperties
malloc()
Returns a newVkQueueFamilyProperties
instance allocated withmemAlloc
.static VkQueueFamilyProperties.Buffer
malloc(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withmemAlloc
.static VkQueueFamilyProperties
mallocStack()
Returns a newVkQueueFamilyProperties
instance allocated on the thread-localMemoryStack
.static VkQueueFamilyProperties.Buffer
mallocStack(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the thread-localMemoryStack
.static VkQueueFamilyProperties.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkQueueFamilyProperties
mallocStack(MemoryStack stack)
Returns a newVkQueueFamilyProperties
instance allocated on the specifiedMemoryStack
.VkExtent3D
minImageTransferGranularity()
Returns aVkExtent3D
view of theminImageTransferGranularity
field.int
queueCount()
Returns the value of thequeueCount
field.int
queueFlags()
Returns the value of thequeueFlags
field.int
sizeof()
Returns thesizeof(struct)
.int
timestampValidBits()
Returns the value of thetimestampValidBits
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkQueueFamilyProperties
public VkQueueFamilyProperties(java.nio.ByteBuffer container)
Creates aVkQueueFamilyProperties
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)
.
-
queueFlags
public int queueFlags()
Returns the value of thequeueFlags
field.
-
queueCount
public int queueCount()
Returns the value of thequeueCount
field.
-
timestampValidBits
public int timestampValidBits()
Returns the value of thetimestampValidBits
field.
-
minImageTransferGranularity
public VkExtent3D minImageTransferGranularity()
Returns aVkExtent3D
view of theminImageTransferGranularity
field.
-
malloc
public static VkQueueFamilyProperties malloc()
Returns a newVkQueueFamilyProperties
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkQueueFamilyProperties calloc()
Returns a newVkQueueFamilyProperties
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkQueueFamilyProperties create()
Returns a newVkQueueFamilyProperties
instance allocated withBufferUtils
.
-
create
public static VkQueueFamilyProperties create(long address)
Returns a newVkQueueFamilyProperties
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkQueueFamilyProperties.Buffer malloc(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkQueueFamilyProperties.Buffer calloc(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkQueueFamilyProperties.Buffer create(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkQueueFamilyProperties.Buffer create(long address, int capacity)
Create aVkQueueFamilyProperties.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkQueueFamilyProperties mallocStack()
Returns a newVkQueueFamilyProperties
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkQueueFamilyProperties callocStack()
Returns a newVkQueueFamilyProperties
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkQueueFamilyProperties mallocStack(MemoryStack stack)
Returns a newVkQueueFamilyProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkQueueFamilyProperties callocStack(MemoryStack stack)
Returns a newVkQueueFamilyProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkQueueFamilyProperties.Buffer mallocStack(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkQueueFamilyProperties.Buffer callocStack(int capacity)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkQueueFamilyProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkQueueFamilyProperties.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkQueueFamilyProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-