Package org.lwjgl.vulkan
Class VkQueueFamilyGlobalPriorityPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkQueueFamilyGlobalPriorityPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkQueueFamilyGlobalPriorityPropertiesEXT
public class VkQueueFamilyGlobalPriorityPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceReturn structure for queue family global priority information query.Description
If the
VkQueueFamilyGlobalPriorityPropertiesKHRstructure is included in thepNextchain of theVkQueueFamilyProperties2structure passed toGetPhysicalDeviceQueueFamilyProperties2, it is filled in with the list of supported global queue priorities for the indicated family.The valid elements of
prioritiesmust not contain any duplicate values.The valid elements of
prioritiesmust be a continuous sequence ofVkQueueGlobalPriorityKHRenums in the ascending order.Note
For example, returning
priorityCountas 3 with supportedprioritiesasQUEUE_GLOBAL_PRIORITY_LOW_KHR,QUEUE_GLOBAL_PRIORITY_MEDIUM_KHRandQUEUE_GLOBAL_PRIORITY_REALTIME_KHRis not allowed.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR- Any given element of
prioritiesmust be a validVkQueueGlobalPriorityKHRvalue
Layout
struct VkQueueFamilyGlobalPriorityPropertiesKHR { VkStructureTypesType(); void *pNext(); uint32_tpriorityCount(); VkQueueGlobalPriorityKHRpriorities()[VK_MAX_GLOBAL_PRIORITY_SIZE_KHR]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkQueueFamilyGlobalPriorityPropertiesKHR.BufferAn array ofVkQueueFamilyGlobalPriorityPropertiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PRIORITIES
PRIORITYCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkQueueFamilyGlobalPriorityPropertiesKHR(java.nio.ByteBuffer container)Creates aVkQueueFamilyGlobalPriorityPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkQueueFamilyGlobalPriorityPropertiesKHRcalloc()Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withmemCalloc.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffercalloc(int capacity)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueueFamilyGlobalPriorityPropertiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueueFamilyGlobalPriorityPropertiesKHRcreate()Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withBufferUtils.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffercreate(int capacity)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkQueueFamilyGlobalPriorityPropertiesKHRcreate(long address)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance for the specified memory address.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffercreate(long address, int capacity)Create aVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance at the specified memory.static VkQueueFamilyGlobalPriorityPropertiesKHRcreateSafe(long address)static VkQueueFamilyGlobalPriorityPropertiesKHR.BuffercreateSafe(long address, int capacity)static VkQueueFamilyGlobalPriorityPropertiesKHRmalloc()Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withmemAlloc.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffermalloc(int capacity)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkQueueFamilyGlobalPriorityPropertiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpriorities(long struct)Unsafe version ofpriorities().static intnpriorities(long struct, int index)Unsafe version ofpriorities.static voidnpriorities(long struct, int index, int value)Unsafe version ofpriorities.static voidnpriorities(long struct, java.nio.IntBuffer value)Unsafe version ofpriorities.static intnpriorityCount(long struct)Unsafe version ofpriorityCount().static voidnpriorityCount(long struct, int value)Unsafe version ofpriorityCount.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkQueueFamilyGlobalPriorityPropertiesKHRpNext(long value)Sets the specified value to thepNext()field.java.nio.IntBufferpriorities()an array ofMAX_GLOBAL_PRIORITY_SIZE_EXTVkQueueGlobalPriorityEXTenums representing all supported global queue priorities in this queue family.intpriorities(int index)an array ofMAX_GLOBAL_PRIORITY_SIZE_EXTVkQueueGlobalPriorityEXTenums representing all supported global queue priorities in this queue family.VkQueueFamilyGlobalPriorityPropertiesKHRpriorities(int index, int value)Sets the specified value at the specified index of thepriorities()field.VkQueueFamilyGlobalPriorityPropertiesKHRpriorities(java.nio.IntBuffer value)Copies the specifiedIntBufferto thepriorities()field.intpriorityCount()the number of supported global queue priorities in this queue family, and it must be greater than 0.VkQueueFamilyGlobalPriorityPropertiesKHRpriorityCount(int value)Sets the specified value to thepriorityCount()field.VkQueueFamilyGlobalPriorityPropertiesKHRset(int sType, long pNext, int priorityCount, java.nio.IntBuffer priorities)Initializes this struct with the specified values.VkQueueFamilyGlobalPriorityPropertiesKHRset(VkQueueFamilyGlobalPriorityPropertiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkQueueFamilyGlobalPriorityPropertiesKHRsType(int value)Sets the specified value to thesType()field.VkQueueFamilyGlobalPriorityPropertiesKHRsType$Default()Sets theSTRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkQueueFamilyGlobalPriorityPropertiesKHR
public VkQueueFamilyGlobalPriorityPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkQueueFamilyGlobalPriorityPropertiesKHRinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
priorityCount
public int priorityCount()
the number of supported global queue priorities in this queue family, and it must be greater than 0.
-
priorities
public java.nio.IntBuffer priorities() public int priorities(int index)
an array ofMAX_GLOBAL_PRIORITY_SIZE_EXTVkQueueGlobalPriorityEXTenums representing all supported global queue priorities in this queue family. The firstpriorityCountelements of the array will be valid.
-
sType
public VkQueueFamilyGlobalPriorityPropertiesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkQueueFamilyGlobalPriorityPropertiesKHR sType$Default()
Sets theSTRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHRvalue to thesType()field.
-
pNext
public VkQueueFamilyGlobalPriorityPropertiesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
priorityCount
public VkQueueFamilyGlobalPriorityPropertiesKHR priorityCount(int value)
Sets the specified value to thepriorityCount()field.
-
priorities
public VkQueueFamilyGlobalPriorityPropertiesKHR priorities(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thepriorities()field.
-
priorities
public VkQueueFamilyGlobalPriorityPropertiesKHR priorities(int index, int value)
Sets the specified value at the specified index of thepriorities()field.
-
set
public VkQueueFamilyGlobalPriorityPropertiesKHR set(int sType, long pNext, int priorityCount, java.nio.IntBuffer priorities)
Initializes this struct with the specified values.
-
set
public VkQueueFamilyGlobalPriorityPropertiesKHR set(VkQueueFamilyGlobalPriorityPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR malloc()
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR calloc()
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkQueueFamilyGlobalPriorityPropertiesKHR create()
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkQueueFamilyGlobalPriorityPropertiesKHR create(long address)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkQueueFamilyGlobalPriorityPropertiesKHR createSafe(long address)
-
malloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer create(int capacity)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer create(long address, int capacity)
Create aVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkQueueFamilyGlobalPriorityPropertiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueueFamilyGlobalPriorityPropertiesKHR.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().
-
npriorityCount
public static int npriorityCount(long struct)
Unsafe version ofpriorityCount().
-
npriorities
public static java.nio.IntBuffer npriorities(long struct)
Unsafe version ofpriorities().
-
npriorities
public static int npriorities(long struct, int index)Unsafe version ofpriorities.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npriorityCount
public static void npriorityCount(long struct, int value)Unsafe version ofpriorityCount.
-
npriorities
public static void npriorities(long struct, java.nio.IntBuffer value)Unsafe version ofpriorities.
-
npriorities
public static void npriorities(long struct, int index, int value)Unsafe version ofpriorities.
-
-