Package org.lwjgl.vulkan
Class VkPhysicalDevicePerformanceQueryPropertiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePerformanceQueryPropertiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDevicePerformanceQueryPropertiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing performance query properties for an implementation.Description
If the
VkPhysicalDevicePerformanceQueryPropertiesKHRstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
Layout
struct VkPhysicalDevicePerformanceQueryPropertiesKHR { VkStructureTypesType(); void *pNext(); VkBool32allowCommandBufferQueryCopies(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePerformanceQueryPropertiesKHR.BufferAn array ofVkPhysicalDevicePerformanceQueryPropertiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOWCOMMANDBUFFERQUERYCOPIES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePerformanceQueryPropertiesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePerformanceQueryPropertiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowCommandBufferQueryCopies()TRUEif the performance query pools are allowed to be used withCmdCopyQueryPoolResults.static VkPhysicalDevicePerformanceQueryPropertiesKHRcalloc()Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withmemCalloc.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePerformanceQueryPropertiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePerformanceQueryPropertiesKHRcreate()Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withBufferUtils.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePerformanceQueryPropertiesKHRcreate(long address)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance for the specified memory address.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance at the specified memory.static VkPhysicalDevicePerformanceQueryPropertiesKHRcreateSafe(long address)static VkPhysicalDevicePerformanceQueryPropertiesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePerformanceQueryPropertiesKHRmalloc()Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withmemAlloc.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePerformanceQueryPropertiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated on the specifiedMemoryStack.static intnallowCommandBufferQueryCopies(long struct)Unsafe version ofallowCommandBufferQueryCopies().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.VkPhysicalDevicePerformanceQueryPropertiesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDevicePerformanceQueryPropertiesKHRset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDevicePerformanceQueryPropertiesKHRset(VkPhysicalDevicePerformanceQueryPropertiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePerformanceQueryPropertiesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePerformanceQueryPropertiesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePerformanceQueryPropertiesKHR
public VkPhysicalDevicePerformanceQueryPropertiesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePerformanceQueryPropertiesKHRinstance 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.
-
allowCommandBufferQueryCopies
public boolean allowCommandBufferQueryCopies()
TRUEif the performance query pools are allowed to be used withCmdCopyQueryPoolResults.
-
sType
public VkPhysicalDevicePerformanceQueryPropertiesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePerformanceQueryPropertiesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDevicePerformanceQueryPropertiesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDevicePerformanceQueryPropertiesKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePerformanceQueryPropertiesKHR set(VkPhysicalDevicePerformanceQueryPropertiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR malloc()
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR calloc()
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePerformanceQueryPropertiesKHR create()
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePerformanceQueryPropertiesKHR create(long address)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePerformanceQueryPropertiesKHR createSafe(long address)
-
malloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePerformanceQueryPropertiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePerformanceQueryPropertiesKHR.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().
-
nallowCommandBufferQueryCopies
public static int nallowCommandBufferQueryCopies(long struct)
Unsafe version ofallowCommandBufferQueryCopies().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-