Package org.lwjgl.vulkan
Class VkPhysicalDevicePerformanceQueryFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePerformanceQueryFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDevicePerformanceQueryFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing performance query support for an implementation.Description
If the
VkPhysicalDevicePerformanceQueryFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePerformanceQueryFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDevicePerformanceQueryFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32performanceCounterQueryPools(); VkBool32performanceCounterMultipleQueryPools(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePerformanceQueryFeaturesKHR.BufferAn array ofVkPhysicalDevicePerformanceQueryFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPERFORMANCECOUNTERMULTIPLEQUERYPOOLS
PERFORMANCECOUNTERQUERYPOOLS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePerformanceQueryFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePerformanceQueryFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePerformanceQueryFeaturesKHRcalloc()Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePerformanceQueryFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePerformanceQueryFeaturesKHRcreate()Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePerformanceQueryFeaturesKHRcreate(long address)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance for the specified memory address.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDevicePerformanceQueryFeaturesKHRcreateSafe(long address)static VkPhysicalDevicePerformanceQueryFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePerformanceQueryFeaturesKHRmalloc()Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePerformanceQueryFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.static intnperformanceCounterMultipleQueryPools(long struct)Unsafe version ofperformanceCounterMultipleQueryPools().static voidnperformanceCounterMultipleQueryPools(long struct, int value)Unsafe version ofperformanceCounterMultipleQueryPools.static intnperformanceCounterQueryPools(long struct)Unsafe version ofperformanceCounterQueryPools().static voidnperformanceCounterQueryPools(long struct, int value)Unsafe version ofperformanceCounterQueryPools.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.booleanperformanceCounterMultipleQueryPools()indicates whether the implementation supports using multiple performance query pools in a primary command buffer and secondary command buffers executed within it.VkPhysicalDevicePerformanceQueryFeaturesKHRperformanceCounterMultipleQueryPools(boolean value)Sets the specified value to theperformanceCounterMultipleQueryPools()field.booleanperformanceCounterQueryPools()indicates whether the implementation supports performance counter query pools.VkPhysicalDevicePerformanceQueryFeaturesKHRperformanceCounterQueryPools(boolean value)Sets the specified value to theperformanceCounterQueryPools()field.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDevicePerformanceQueryFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDevicePerformanceQueryFeaturesKHRset(int sType, long pNext, boolean performanceCounterQueryPools, boolean performanceCounterMultipleQueryPools)Initializes this struct with the specified values.VkPhysicalDevicePerformanceQueryFeaturesKHRset(VkPhysicalDevicePerformanceQueryFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePerformanceQueryFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePerformanceQueryFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePerformanceQueryFeaturesKHR
public VkPhysicalDevicePerformanceQueryFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePerformanceQueryFeaturesKHRinstance 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.
-
performanceCounterQueryPools
public boolean performanceCounterQueryPools()
indicates whether the implementation supports performance counter query pools.
-
performanceCounterMultipleQueryPools
public boolean performanceCounterMultipleQueryPools()
indicates whether the implementation supports using multiple performance query pools in a primary command buffer and secondary command buffers executed within it.
-
sType
public VkPhysicalDevicePerformanceQueryFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePerformanceQueryFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDevicePerformanceQueryFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
performanceCounterQueryPools
public VkPhysicalDevicePerformanceQueryFeaturesKHR performanceCounterQueryPools(boolean value)
Sets the specified value to theperformanceCounterQueryPools()field.
-
performanceCounterMultipleQueryPools
public VkPhysicalDevicePerformanceQueryFeaturesKHR performanceCounterMultipleQueryPools(boolean value)
Sets the specified value to theperformanceCounterMultipleQueryPools()field.
-
set
public VkPhysicalDevicePerformanceQueryFeaturesKHR set(int sType, long pNext, boolean performanceCounterQueryPools, boolean performanceCounterMultipleQueryPools)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePerformanceQueryFeaturesKHR set(VkPhysicalDevicePerformanceQueryFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR malloc()
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR calloc()
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePerformanceQueryFeaturesKHR create()
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePerformanceQueryFeaturesKHR create(long address)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePerformanceQueryFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePerformanceQueryFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryFeaturesKHR.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().
-
nperformanceCounterQueryPools
public static int nperformanceCounterQueryPools(long struct)
Unsafe version ofperformanceCounterQueryPools().
-
nperformanceCounterMultipleQueryPools
public static int nperformanceCounterMultipleQueryPools(long struct)
Unsafe version ofperformanceCounterMultipleQueryPools().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nperformanceCounterQueryPools
public static void nperformanceCounterQueryPools(long struct, int value)Unsafe version ofperformanceCounterQueryPools.
-
nperformanceCounterMultipleQueryPools
public static void nperformanceCounterMultipleQueryPools(long struct, int value)Unsafe version ofperformanceCounterMultipleQueryPools.
-
-