public class VkPerformanceQuerySubmitInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkSubmitInfo::pNext chain does not include this structure, the batch defaults to use counter pass index 0.
counterPassIndex must be less than the number of counter passes required by any queries within the batch. The required number of counter passes for a performance query is obtained by calling GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHRsType must be STRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHRsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.counterPassIndex – specifies which counter pass index is active.
struct VkPerformanceQuerySubmitInfoKHR {
VkStructureType sType;
void const * pNext;
uint32_t counterPassIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPerformanceQuerySubmitInfoKHR.Buffer
An array of
VkPerformanceQuerySubmitInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COUNTERPASSINDEX
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPerformanceQuerySubmitInfoKHR(java.nio.ByteBuffer container)
Creates a
VkPerformanceQuerySubmitInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPerformanceQuerySubmitInfoKHR |
calloc()
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated with memCalloc. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with memCalloc. |
static VkPerformanceQuerySubmitInfoKHR |
callocStack()
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceQuerySubmitInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
counterPassIndex()
Returns the value of the
counterPassIndex field. |
VkPerformanceQuerySubmitInfoKHR |
counterPassIndex(int value)
Sets the specified value to the
counterPassIndex field. |
static VkPerformanceQuerySubmitInfoKHR |
create()
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated with BufferUtils. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
create(int capacity)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with BufferUtils. |
static VkPerformanceQuerySubmitInfoKHR |
create(long address)
Returns a new
VkPerformanceQuerySubmitInfoKHR instance for the specified memory address. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkPerformanceQuerySubmitInfoKHR.Buffer instance at the specified memory. |
static VkPerformanceQuerySubmitInfoKHR |
createSafe(long address)
|
static VkPerformanceQuerySubmitInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPerformanceQuerySubmitInfoKHR |
malloc()
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated with memAlloc. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with memAlloc. |
static VkPerformanceQuerySubmitInfoKHR |
mallocStack()
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated on the thread-local MemoryStack. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPerformanceQuerySubmitInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPerformanceQuerySubmitInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceQuerySubmitInfoKHR instance allocated on the specified MemoryStack. |
static int |
ncounterPassIndex(long struct)
Unsafe version of
counterPassIndex(). |
static void |
ncounterPassIndex(long struct,
int value)
Unsafe version of
counterPassIndex. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPerformanceQuerySubmitInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPerformanceQuerySubmitInfoKHR |
set(int sType,
long pNext,
int counterPassIndex)
Initializes this struct with the specified values.
|
VkPerformanceQuerySubmitInfoKHR |
set(VkPerformanceQuerySubmitInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPerformanceQuerySubmitInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int COUNTERPASSINDEX
public VkPerformanceQuerySubmitInfoKHR(java.nio.ByteBuffer container)
VkPerformanceQuerySubmitInfoKHR instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int counterPassIndex()
counterPassIndex field.public VkPerformanceQuerySubmitInfoKHR sType(int value)
sType field.public VkPerformanceQuerySubmitInfoKHR pNext(long value)
pNext field.public VkPerformanceQuerySubmitInfoKHR counterPassIndex(int value)
counterPassIndex field.public VkPerformanceQuerySubmitInfoKHR set(int sType, long pNext, int counterPassIndex)
public VkPerformanceQuerySubmitInfoKHR set(VkPerformanceQuerySubmitInfoKHR src)
src - the source structpublic static VkPerformanceQuerySubmitInfoKHR malloc()
VkPerformanceQuerySubmitInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPerformanceQuerySubmitInfoKHR calloc()
VkPerformanceQuerySubmitInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPerformanceQuerySubmitInfoKHR create()
VkPerformanceQuerySubmitInfoKHR instance allocated with BufferUtils.public static VkPerformanceQuerySubmitInfoKHR create(long address)
VkPerformanceQuerySubmitInfoKHR instance for the specified memory address.@Nullable public static VkPerformanceQuerySubmitInfoKHR createSafe(long address)
public static VkPerformanceQuerySubmitInfoKHR.Buffer malloc(int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer calloc(int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer create(int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer create(long address, int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPerformanceQuerySubmitInfoKHR.Buffer createSafe(long address, int capacity)
public static VkPerformanceQuerySubmitInfoKHR mallocStack()
VkPerformanceQuerySubmitInfoKHR instance allocated on the thread-local MemoryStack.public static VkPerformanceQuerySubmitInfoKHR callocStack()
VkPerformanceQuerySubmitInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPerformanceQuerySubmitInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceQuerySubmitInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPerformanceQuerySubmitInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceQuerySubmitInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPerformanceQuerySubmitInfoKHR.Buffer mallocStack(int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer callocStack(int capacity)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPerformanceQuerySubmitInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceQuerySubmitInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ncounterPassIndex(long struct)
counterPassIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ncounterPassIndex(long struct,
int value)
counterPassIndex.Copyright LWJGL. All Rights Reserved. License terms.