Package org.lwjgl.vulkan
Class VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT
public class VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether global priority query can be supported by an implementation.Description
If the
VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32globalPriorityQuery(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.BufferAn array ofVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intGLOBALPRIORITYQUERY
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcalloc()Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcreate()Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.BuffercreateSafe(long address, int capacity)booleanglobalPriorityQuery()indicates whether the implementation supports the ability to query global queue priorities.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRglobalPriorityQuery(boolean value)Sets the specified value to theglobalPriorityQuery()field.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRmalloc()Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.static intnglobalPriorityQuery(long struct)Unsafe version ofglobalPriorityQuery().static voidnglobalPriorityQuery(long struct, int value)Unsafe version ofglobalPriorityQuery.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.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRset(int sType, long pNext, boolean globalPriorityQuery)Initializes this struct with the specified values.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRset(VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceGlobalPriorityQueryFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance 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.
-
globalPriorityQuery
public boolean globalPriorityQuery()
indicates whether the implementation supports the ability to query global queue priorities.
-
sType
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
globalPriorityQuery
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR globalPriorityQuery(boolean value)
Sets the specified value to theglobalPriorityQuery()field.
-
set
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR set(int sType, long pNext, boolean globalPriorityQuery)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR set(VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR malloc()
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR calloc()
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR create()
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceGlobalPriorityQueryFeaturesKHR.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().
-
nglobalPriorityQuery
public static int nglobalPriorityQuery(long struct)
Unsafe version ofglobalPriorityQuery().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nglobalPriorityQuery
public static void nglobalPriorityQuery(long struct, int value)Unsafe version ofglobalPriorityQuery.
-
-