Package org.lwjgl.vulkan
Class VkDeviceQueueGlobalPriorityCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceQueueGlobalPriorityCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDeviceQueueGlobalPriorityCreateInfoEXT
public class VkDeviceQueueGlobalPriorityCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify a system wide priority.Description
A queue created without specifying
VkDeviceQueueGlobalPriorityCreateInfoKHRwill default toQUEUE_GLOBAL_PRIORITY_MEDIUM_KHR.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHRglobalPrioritymust be a validVkQueueGlobalPriorityKHRvalue
Layout
struct VkDeviceQueueGlobalPriorityCreateInfoKHR { VkStructureTypesType(); void const *pNext(); VkQueueGlobalPriorityKHRglobalPriority(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceQueueGlobalPriorityCreateInfoKHR.BufferAn array ofVkDeviceQueueGlobalPriorityCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intGLOBALPRIORITY
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceQueueGlobalPriorityCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkDeviceQueueGlobalPriorityCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceQueueGlobalPriorityCreateInfoKHRcalloc()Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withmemCalloc.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueGlobalPriorityCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceQueueGlobalPriorityCreateInfoKHRcreate()Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withBufferUtils.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffercreate(int capacity)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkDeviceQueueGlobalPriorityCreateInfoKHRcreate(long address)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance for the specified memory address.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance at the specified memory.static VkDeviceQueueGlobalPriorityCreateInfoKHRcreateSafe(long address)static VkDeviceQueueGlobalPriorityCreateInfoKHR.BuffercreateSafe(long address, int capacity)intglobalPriority()the system-wide priority associated to this queue as specified byVkQueueGlobalPriorityEXTVkDeviceQueueGlobalPriorityCreateInfoKHRglobalPriority(int value)Sets the specified value to theglobalPriority()field.static VkDeviceQueueGlobalPriorityCreateInfoKHRmalloc()Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withmemAlloc.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceQueueGlobalPriorityCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated on the specifiedMemoryStack.static intnglobalPriority(long struct)Unsafe version ofglobalPriority().static voidnglobalPriority(long struct, int value)Unsafe version ofglobalPriority.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.VkDeviceQueueGlobalPriorityCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkDeviceQueueGlobalPriorityCreateInfoKHRset(int sType, long pNext, int globalPriority)Initializes this struct with the specified values.VkDeviceQueueGlobalPriorityCreateInfoKHRset(VkDeviceQueueGlobalPriorityCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDeviceQueueGlobalPriorityCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkDeviceQueueGlobalPriorityCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDeviceQueueGlobalPriorityCreateInfoKHR
public VkDeviceQueueGlobalPriorityCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkDeviceQueueGlobalPriorityCreateInfoKHRinstance 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.
-
globalPriority
public int globalPriority()
the system-wide priority associated to this queue as specified byVkQueueGlobalPriorityEXT
-
sType
public VkDeviceQueueGlobalPriorityCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceQueueGlobalPriorityCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkDeviceQueueGlobalPriorityCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
globalPriority
public VkDeviceQueueGlobalPriorityCreateInfoKHR globalPriority(int value)
Sets the specified value to theglobalPriority()field.
-
set
public VkDeviceQueueGlobalPriorityCreateInfoKHR set(int sType, long pNext, int globalPriority)
Initializes this struct with the specified values.
-
set
public VkDeviceQueueGlobalPriorityCreateInfoKHR set(VkDeviceQueueGlobalPriorityCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR malloc()
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR calloc()
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceQueueGlobalPriorityCreateInfoKHR create()
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkDeviceQueueGlobalPriorityCreateInfoKHR create(long address)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceQueueGlobalPriorityCreateInfoKHR createSafe(long address)
-
malloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer create(int capacity)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceQueueGlobalPriorityCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceQueueGlobalPriorityCreateInfoKHR.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().
-
nglobalPriority
public static int nglobalPriority(long struct)
Unsafe version ofglobalPriority().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nglobalPriority
public static void nglobalPriority(long struct, int value)Unsafe version ofglobalPriority.
-
-