Package org.lwjgl.vulkan
Class VkQueryPoolPerformanceCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkQueryPoolPerformanceCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkQueryPoolPerformanceCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created performance query pool.Valid Usage
queueFamilyIndexmust be a valid queue family index of the device- The
performanceCounterQueryPoolsfeature must be enabled - Each element of
pCounterIndicesmust be in the range of counters reported byvkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHRfor the queue family specified inqueueFamilyIndex
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHRpCounterIndicesmust be a valid pointer to an array ofcounterIndexCountuint32_tvaluescounterIndexCountmust be greater than 0
See Also
GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHRLayout
struct VkQueryPoolPerformanceCreateInfoKHR { VkStructureTypesType(); void const *pNext(); uint32_tqueueFamilyIndex(); uint32_tcounterIndexCount(); uint32_t const *pCounterIndices(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkQueryPoolPerformanceCreateInfoKHR.BufferAn array ofVkQueryPoolPerformanceCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOUNTERINDEXCOUNT
PCOUNTERINDICES
PNEXT
QUEUEFAMILYINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkQueryPoolPerformanceCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkQueryPoolPerformanceCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkQueryPoolPerformanceCreateInfoKHRcalloc()Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withmemCalloc.static VkQueryPoolPerformanceCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkQueryPoolPerformanceCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueryPoolPerformanceCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcounterIndexCount()the length of thepCounterIndicesarray.static VkQueryPoolPerformanceCreateInfoKHRcreate()Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withBufferUtils.static VkQueryPoolPerformanceCreateInfoKHR.Buffercreate(int capacity)Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkQueryPoolPerformanceCreateInfoKHRcreate(long address)Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance for the specified memory address.static VkQueryPoolPerformanceCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance at the specified memory.static VkQueryPoolPerformanceCreateInfoKHRcreateSafe(long address)static VkQueryPoolPerformanceCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkQueryPoolPerformanceCreateInfoKHRmalloc()Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withmemAlloc.static VkQueryPoolPerformanceCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkQueryPoolPerformanceCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkQueryPoolPerformanceCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated on the specifiedMemoryStack.static intncounterIndexCount(long struct)Unsafe version ofcounterIndexCount().static voidncounterIndexCount(long struct, int value)Sets the specified value to thecounterIndexCountfield of the specifiedstruct.static java.nio.IntBuffernpCounterIndices(long struct)Unsafe version ofpCounterIndices.static voidnpCounterIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpCounterIndices.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnqueueFamilyIndex(long struct)Unsafe version ofqueueFamilyIndex().static voidnqueueFamilyIndex(long struct, int value)Unsafe version ofqueueFamilyIndex.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.IntBufferpCounterIndices()a pointer to an array of indices into theEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR::pCountersto enable in this performance query pool.VkQueryPoolPerformanceCreateInfoKHRpCounterIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepCounterIndices()field.longpNext()NULLor a pointer to a structure extending this structure.VkQueryPoolPerformanceCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.intqueueFamilyIndex()the queue family index to create this performance query pool for.VkQueryPoolPerformanceCreateInfoKHRqueueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndex()field.VkQueryPoolPerformanceCreateInfoKHRset(int sType, long pNext, int queueFamilyIndex, java.nio.IntBuffer pCounterIndices)Initializes this struct with the specified values.VkQueryPoolPerformanceCreateInfoKHRset(VkQueryPoolPerformanceCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkQueryPoolPerformanceCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkQueryPoolPerformanceCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkQueryPoolPerformanceCreateInfoKHR
public VkQueryPoolPerformanceCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkQueryPoolPerformanceCreateInfoKHRinstance 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.
-
queueFamilyIndex
public int queueFamilyIndex()
the queue family index to create this performance query pool for.
-
counterIndexCount
public int counterIndexCount()
the length of thepCounterIndicesarray.
-
pCounterIndices
public java.nio.IntBuffer pCounterIndices()
a pointer to an array of indices into theEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR::pCountersto enable in this performance query pool.
-
sType
public VkQueryPoolPerformanceCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkQueryPoolPerformanceCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkQueryPoolPerformanceCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
queueFamilyIndex
public VkQueryPoolPerformanceCreateInfoKHR queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndex()field.
-
pCounterIndices
public VkQueryPoolPerformanceCreateInfoKHR pCounterIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepCounterIndices()field.
-
set
public VkQueryPoolPerformanceCreateInfoKHR set(int sType, long pNext, int queueFamilyIndex, java.nio.IntBuffer pCounterIndices)
Initializes this struct with the specified values.
-
set
public VkQueryPoolPerformanceCreateInfoKHR set(VkQueryPoolPerformanceCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkQueryPoolPerformanceCreateInfoKHR malloc()
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkQueryPoolPerformanceCreateInfoKHR calloc()
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkQueryPoolPerformanceCreateInfoKHR create()
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkQueryPoolPerformanceCreateInfoKHR create(long address)
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkQueryPoolPerformanceCreateInfoKHR createSafe(long address)
-
malloc
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer create(int capacity)
Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkQueryPoolPerformanceCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkQueryPoolPerformanceCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkQueryPoolPerformanceCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolPerformanceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolPerformanceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkQueryPoolPerformanceCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolPerformanceCreateInfoKHR.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().
-
nqueueFamilyIndex
public static int nqueueFamilyIndex(long struct)
Unsafe version ofqueueFamilyIndex().
-
ncounterIndexCount
public static int ncounterIndexCount(long struct)
Unsafe version ofcounterIndexCount().
-
npCounterIndices
public static java.nio.IntBuffer npCounterIndices(long struct)
Unsafe version ofpCounterIndices.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nqueueFamilyIndex
public static void nqueueFamilyIndex(long struct, int value)Unsafe version ofqueueFamilyIndex.
-
ncounterIndexCount
public static void ncounterIndexCount(long struct, int value)Sets the specified value to thecounterIndexCountfield of the specifiedstruct.
-
npCounterIndices
public static void npCounterIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpCounterIndices.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-