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_BITQUEUE_FAMILY_IGNOREDQUEUE_GRAPHICS_BITQUEUE_SPARSE_BINDING_BITQUEUE_TRANSFER_BITqueueCount– the unsigned integer count of queues in this queue familytimestampValidBits– the unsigned integer count of meaningful bits in the timestamps written viaCmdWriteTimestampminImageTransferGranularity– 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;VkExtent3DminImageTransferGranularity; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkQueueFamilyProperties.BufferAn array ofVkQueueFamilyPropertiesstructs.-
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 VkQueueFamilyProperties(java.nio.ByteBuffer container)Creates aVkQueueFamilyPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkQueueFamilyPropertiescalloc()Returns a newVkQueueFamilyPropertiesinstance allocated withmemCalloc.static VkQueueFamilyProperties.Buffercalloc(int capacity)Returns a newVkQueueFamilyProperties.Bufferinstance allocated withmemCalloc.static VkQueueFamilyPropertiescallocStack()Returns a newVkQueueFamilyPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkQueueFamilyProperties.BuffercallocStack(int capacity)Returns a newVkQueueFamilyProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkQueueFamilyProperties.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkQueueFamilyProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueueFamilyPropertiescallocStack(MemoryStack stack)Returns a newVkQueueFamilyPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueueFamilyPropertiescreate()Returns a newVkQueueFamilyPropertiesinstance allocated withBufferUtils.static VkQueueFamilyProperties.Buffercreate(int capacity)Returns a newVkQueueFamilyProperties.Bufferinstance allocated withBufferUtils.static VkQueueFamilyPropertiescreate(long address)Returns a newVkQueueFamilyPropertiesinstance for the specified memory address ornullif the address isNULL.static VkQueueFamilyProperties.Buffercreate(long address, int capacity)Create aVkQueueFamilyProperties.Bufferinstance at the specified memory.static VkQueueFamilyPropertiesmalloc()Returns a newVkQueueFamilyPropertiesinstance allocated withmemAlloc.static VkQueueFamilyProperties.Buffermalloc(int capacity)Returns a newVkQueueFamilyProperties.Bufferinstance allocated withmemAlloc.static VkQueueFamilyPropertiesmallocStack()Returns a newVkQueueFamilyPropertiesinstance allocated on the thread-localMemoryStack.static VkQueueFamilyProperties.BuffermallocStack(int capacity)Returns a newVkQueueFamilyProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkQueueFamilyProperties.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkQueueFamilyProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkQueueFamilyPropertiesmallocStack(MemoryStack stack)Returns a newVkQueueFamilyPropertiesinstance allocated on the specifiedMemoryStack.VkExtent3DminImageTransferGranularity()Returns aVkExtent3Dview of theminImageTransferGranularityfield.intqueueCount()Returns the value of thequeueCountfield.intqueueFlags()Returns the value of thequeueFlagsfield.intsizeof()Returns thesizeof(struct).inttimestampValidBits()Returns the value of thetimestampValidBitsfield.-
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 aVkQueueFamilyPropertiesinstance 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).
-
queueFlags
public int queueFlags()
Returns the value of thequeueFlagsfield.
-
queueCount
public int queueCount()
Returns the value of thequeueCountfield.
-
timestampValidBits
public int timestampValidBits()
Returns the value of thetimestampValidBitsfield.
-
minImageTransferGranularity
public VkExtent3D minImageTransferGranularity()
Returns aVkExtent3Dview of theminImageTransferGranularityfield.
-
malloc
public static VkQueueFamilyProperties malloc()
Returns a newVkQueueFamilyPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkQueueFamilyProperties calloc()
Returns a newVkQueueFamilyPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkQueueFamilyProperties create()
Returns a newVkQueueFamilyPropertiesinstance allocated withBufferUtils.
-
create
public static VkQueueFamilyProperties create(long address)
Returns a newVkQueueFamilyPropertiesinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkQueueFamilyProperties.Buffer malloc(int capacity)
Returns a newVkQueueFamilyProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkQueueFamilyProperties.Buffer calloc(int capacity)
Returns a newVkQueueFamilyProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueueFamilyProperties.Buffer create(int capacity)
Returns a newVkQueueFamilyProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueueFamilyProperties.Buffer create(long address, int capacity)
Create aVkQueueFamilyProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkQueueFamilyProperties mallocStack()
Returns a newVkQueueFamilyPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkQueueFamilyProperties callocStack()
Returns a newVkQueueFamilyPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkQueueFamilyProperties mallocStack(MemoryStack stack)
Returns a newVkQueueFamilyPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkQueueFamilyProperties callocStack(MemoryStack stack)
Returns a newVkQueueFamilyPropertiesinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkQueueFamilyProperties.Buffer callocStack(int capacity)
Returns a newVkQueueFamilyProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkQueueFamilyProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkQueueFamilyProperties.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-