Package org.lwjgl.vulkan
Class VkPerformanceQuerySubmitInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPerformanceQuerySubmitInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPerformanceQuerySubmitInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating which counter pass index is active for performance queries.Description
If the
VkSubmitInfo::pNextchain does not include this structure, the batch defaults to use counter pass index 0.Valid Usage
counterPassIndexmust 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 callingGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHR
Layout
struct VkPerformanceQuerySubmitInfoKHR { VkStructureTypesType(); void const *pNext(); uint32_tcounterPassIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPerformanceQuerySubmitInfoKHR.BufferAn array ofVkPerformanceQuerySubmitInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOUNTERPASSINDEX
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPerformanceQuerySubmitInfoKHR(java.nio.ByteBuffer container)Creates aVkPerformanceQuerySubmitInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceQuerySubmitInfoKHRcalloc()Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withmemCalloc.static VkPerformanceQuerySubmitInfoKHR.Buffercalloc(int capacity)Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withmemCalloc.static VkPerformanceQuerySubmitInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceQuerySubmitInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcounterPassIndex()specifies which counter pass index is active.VkPerformanceQuerySubmitInfoKHRcounterPassIndex(int value)Sets the specified value to thecounterPassIndex()field.static VkPerformanceQuerySubmitInfoKHRcreate()Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withBufferUtils.static VkPerformanceQuerySubmitInfoKHR.Buffercreate(int capacity)Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withBufferUtils.static VkPerformanceQuerySubmitInfoKHRcreate(long address)Returns a newVkPerformanceQuerySubmitInfoKHRinstance for the specified memory address.static VkPerformanceQuerySubmitInfoKHR.Buffercreate(long address, int capacity)Create aVkPerformanceQuerySubmitInfoKHR.Bufferinstance at the specified memory.static VkPerformanceQuerySubmitInfoKHRcreateSafe(long address)static VkPerformanceQuerySubmitInfoKHR.BuffercreateSafe(long address, int capacity)static VkPerformanceQuerySubmitInfoKHRmalloc()Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withmemAlloc.static VkPerformanceQuerySubmitInfoKHR.Buffermalloc(int capacity)Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withmemAlloc.static VkPerformanceQuerySubmitInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceQuerySubmitInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated on the specifiedMemoryStack.static intncounterPassIndex(long struct)Unsafe version ofcounterPassIndex().static voidncounterPassIndex(long struct, int value)Unsafe version ofcounterPassIndex.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.VkPerformanceQuerySubmitInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkPerformanceQuerySubmitInfoKHRset(int sType, long pNext, int counterPassIndex)Initializes this struct with the specified values.VkPerformanceQuerySubmitInfoKHRset(VkPerformanceQuerySubmitInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPerformanceQuerySubmitInfoKHRsType(int value)Sets the specified value to thesType()field.VkPerformanceQuerySubmitInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPerformanceQuerySubmitInfoKHR
public VkPerformanceQuerySubmitInfoKHR(java.nio.ByteBuffer container)
Creates aVkPerformanceQuerySubmitInfoKHRinstance 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.
-
counterPassIndex
public int counterPassIndex()
specifies which counter pass index is active.
-
sType
public VkPerformanceQuerySubmitInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPerformanceQuerySubmitInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHRvalue to thesType()field.
-
pNext
public VkPerformanceQuerySubmitInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
counterPassIndex
public VkPerformanceQuerySubmitInfoKHR counterPassIndex(int value)
Sets the specified value to thecounterPassIndex()field.
-
set
public VkPerformanceQuerySubmitInfoKHR set(int sType, long pNext, int counterPassIndex)
Initializes this struct with the specified values.
-
set
public VkPerformanceQuerySubmitInfoKHR set(VkPerformanceQuerySubmitInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPerformanceQuerySubmitInfoKHR malloc()
Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPerformanceQuerySubmitInfoKHR calloc()
Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPerformanceQuerySubmitInfoKHR create()
Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated withBufferUtils.
-
create
public static VkPerformanceQuerySubmitInfoKHR create(long address)
Returns a newVkPerformanceQuerySubmitInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceQuerySubmitInfoKHR createSafe(long address)
-
malloc
public static VkPerformanceQuerySubmitInfoKHR.Buffer malloc(int capacity)
Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPerformanceQuerySubmitInfoKHR.Buffer calloc(int capacity)
Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceQuerySubmitInfoKHR.Buffer create(int capacity)
Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceQuerySubmitInfoKHR.Buffer create(long address, int capacity)
Create aVkPerformanceQuerySubmitInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPerformanceQuerySubmitInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPerformanceQuerySubmitInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPerformanceQuerySubmitInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceQuerySubmitInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPerformanceQuerySubmitInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceQuerySubmitInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPerformanceQuerySubmitInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceQuerySubmitInfoKHR.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().
-
ncounterPassIndex
public static int ncounterPassIndex(long struct)
Unsafe version ofcounterPassIndex().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncounterPassIndex
public static void ncounterPassIndex(long struct, int value)Unsafe version ofcounterPassIndex.
-
-