Package org.lwjgl.vulkan
Class VkQueryPoolCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkQueryPoolCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkQueryPoolCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created query pool.Description
pipelineStatisticsis ignored ifqueryTypeis notQUERY_TYPE_PIPELINE_STATISTICS.Valid Usage
- If the pipeline statistics queries feature is not enabled,
queryTypemust not beQUERY_TYPE_PIPELINE_STATISTICS - If
queryTypeisQUERY_TYPE_PIPELINE_STATISTICS,pipelineStatisticsmust be a valid combination ofVkQueryPipelineStatisticFlagBitsvalues - If
queryTypeisQUERY_TYPE_PERFORMANCE_QUERY_KHR, thepNextchain must include aVkQueryPoolPerformanceCreateInfoKHRstructure queryCountmust be greater than 0
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_QUERY_POOL_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkQueryPoolPerformanceCreateInfoKHR,VkQueryPoolPerformanceQueryCreateInfoINTEL,VkVideoDecodeH264ProfileEXT,VkVideoDecodeH265ProfileEXT,VkVideoEncodeH264ProfileEXT,VkVideoEncodeH265ProfileEXT, orVkVideoProfileKHR - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be 0queryTypemust be a validVkQueryTypevalue
See Also
Layout
struct VkQueryPoolCreateInfo { VkStructureTypesType(); void const *pNext(); VkQueryPoolCreateFlagsflags(); VkQueryTypequeryType(); uint32_tqueryCount(); VkQueryPipelineStatisticFlagspipelineStatistics(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkQueryPoolCreateInfo.BufferAn array ofVkQueryPoolCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PIPELINESTATISTICS
PNEXT
QUERYCOUNT
QUERYTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkQueryPoolCreateInfo(java.nio.ByteBuffer container)Creates aVkQueryPoolCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkQueryPoolCreateInfocalloc()Returns a newVkQueryPoolCreateInfoinstance allocated withmemCalloc.static VkQueryPoolCreateInfo.Buffercalloc(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemCalloc.static VkQueryPoolCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfocallocStack()Deprecated.static VkQueryPoolCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkQueryPoolCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkQueryPoolCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkQueryPoolCreateInfocreate()Returns a newVkQueryPoolCreateInfoinstance allocated withBufferUtils.static VkQueryPoolCreateInfo.Buffercreate(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withBufferUtils.static VkQueryPoolCreateInfocreate(long address)Returns a newVkQueryPoolCreateInfoinstance for the specified memory address.static VkQueryPoolCreateInfo.Buffercreate(long address, int capacity)Create aVkQueryPoolCreateInfo.Bufferinstance at the specified memory.static VkQueryPoolCreateInfocreateSafe(long address)static VkQueryPoolCreateInfo.BuffercreateSafe(long address, int capacity)intflags()reserved for future use.VkQueryPoolCreateInfoflags(int value)Sets the specified value to theflags()field.static VkQueryPoolCreateInfomalloc()Returns a newVkQueryPoolCreateInfoinstance allocated withmemAlloc.static VkQueryPoolCreateInfo.Buffermalloc(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemAlloc.static VkQueryPoolCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkQueryPoolCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.static VkQueryPoolCreateInfomallocStack()Deprecated.static VkQueryPoolCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkQueryPoolCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkQueryPoolCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnpipelineStatistics(long struct)Unsafe version ofpipelineStatistics().static voidnpipelineStatistics(long struct, int value)Unsafe version ofpipelineStatistics.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnqueryCount(long struct)Unsafe version ofqueryCount().static voidnqueryCount(long struct, int value)Unsafe version ofqueryCount.static intnqueryType(long struct)Unsafe version ofqueryType().static voidnqueryType(long struct, int value)Unsafe version ofqueryType.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.intpipelineStatistics()a bitmask ofVkQueryPipelineStatisticFlagBitsspecifying which counters will be returned in queries on the new pool, as described below in Pipeline Statistics Queries.VkQueryPoolCreateInfopipelineStatistics(int value)Sets the specified value to thepipelineStatistics()field.longpNext()NULLor a pointer to a structure extending this structure.VkQueryPoolCreateInfopNext(long value)Sets the specified value to thepNext()field.VkQueryPoolCreateInfopNext(VkQueryPoolCreateInfoINTEL value)Prepends the specifiedVkQueryPoolCreateInfoINTELvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkQueryPoolPerformanceCreateInfoKHR value)Prepends the specifiedVkQueryPoolPerformanceCreateInfoKHRvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkQueryPoolPerformanceQueryCreateInfoINTEL value)Prepends the specifiedVkQueryPoolPerformanceQueryCreateInfoINTELvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkVideoDecodeH264ProfileEXT value)Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkVideoDecodeH265ProfileEXT value)Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkVideoEncodeH264ProfileEXT value)Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkVideoEncodeH265ProfileEXT value)Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.VkQueryPoolCreateInfopNext(VkVideoProfileKHR value)Prepends the specifiedVkVideoProfileKHRvalue to thepNextchain.intqueryCount()the number of queries managed by the pool.VkQueryPoolCreateInfoqueryCount(int value)Sets the specified value to thequeryCount()field.intqueryType()aVkQueryTypevalue specifying the type of queries managed by the pool.VkQueryPoolCreateInfoqueryType(int value)Sets the specified value to thequeryType()field.VkQueryPoolCreateInfoset(int sType, long pNext, int flags, int queryType, int queryCount, int pipelineStatistics)Initializes this struct with the specified values.VkQueryPoolCreateInfoset(VkQueryPoolCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkQueryPoolCreateInfosType(int value)Sets the specified value to thesType()field.VkQueryPoolCreateInfosType$Default()Sets theSTRUCTURE_TYPE_QUERY_POOL_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkQueryPoolCreateInfo
public VkQueryPoolCreateInfo(java.nio.ByteBuffer container)
Creates aVkQueryPoolCreateInfoinstance 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.
-
flags
public int flags()
reserved for future use.
-
queryType
public int queryType()
aVkQueryTypevalue specifying the type of queries managed by the pool.
-
queryCount
public int queryCount()
the number of queries managed by the pool.
-
pipelineStatistics
public int pipelineStatistics()
a bitmask ofVkQueryPipelineStatisticFlagBitsspecifying which counters will be returned in queries on the new pool, as described below in Pipeline Statistics Queries.
-
sType
public VkQueryPoolCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkQueryPoolCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_QUERY_POOL_CREATE_INFOvalue to thesType()field.
-
pNext
public VkQueryPoolCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkQueryPoolCreateInfo pNext(VkQueryPoolCreateInfoINTEL value)
Prepends the specifiedVkQueryPoolCreateInfoINTELvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkQueryPoolPerformanceCreateInfoKHR value)
Prepends the specifiedVkQueryPoolPerformanceCreateInfoKHRvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkQueryPoolPerformanceQueryCreateInfoINTEL value)
Prepends the specifiedVkQueryPoolPerformanceQueryCreateInfoINTELvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkVideoDecodeH264ProfileEXT value)
Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkVideoDecodeH265ProfileEXT value)
Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkVideoEncodeH264ProfileEXT value)
Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkVideoEncodeH265ProfileEXT value)
Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.
-
pNext
public VkQueryPoolCreateInfo pNext(VkVideoProfileKHR value)
Prepends the specifiedVkVideoProfileKHRvalue to thepNextchain.
-
flags
public VkQueryPoolCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
queryType
public VkQueryPoolCreateInfo queryType(int value)
Sets the specified value to thequeryType()field.
-
queryCount
public VkQueryPoolCreateInfo queryCount(int value)
Sets the specified value to thequeryCount()field.
-
pipelineStatistics
public VkQueryPoolCreateInfo pipelineStatistics(int value)
Sets the specified value to thepipelineStatistics()field.
-
set
public VkQueryPoolCreateInfo set(int sType, long pNext, int flags, int queryType, int queryCount, int pipelineStatistics)
Initializes this struct with the specified values.
-
set
public VkQueryPoolCreateInfo set(VkQueryPoolCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkQueryPoolCreateInfo malloc()
Returns a newVkQueryPoolCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkQueryPoolCreateInfo calloc()
Returns a newVkQueryPoolCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkQueryPoolCreateInfo create()
Returns a newVkQueryPoolCreateInfoinstance allocated withBufferUtils.
-
create
public static VkQueryPoolCreateInfo create(long address)
Returns a newVkQueryPoolCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkQueryPoolCreateInfo createSafe(long address)
-
malloc
public static VkQueryPoolCreateInfo.Buffer malloc(int capacity)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkQueryPoolCreateInfo.Buffer calloc(int capacity)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueryPoolCreateInfo.Buffer create(int capacity)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkQueryPoolCreateInfo.Buffer create(long address, int capacity)
Create aVkQueryPoolCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkQueryPoolCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkQueryPoolCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkQueryPoolCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkQueryPoolCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkQueryPoolCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkQueryPoolCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkQueryPoolCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkQueryPoolCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkQueryPoolCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkQueryPoolCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkQueryPoolCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkQueryPoolCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkQueryPoolCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolCreateInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nqueryType
public static int nqueryType(long struct)
Unsafe version ofqueryType().
-
nqueryCount
public static int nqueryCount(long struct)
Unsafe version ofqueryCount().
-
npipelineStatistics
public static int npipelineStatistics(long struct)
Unsafe version ofpipelineStatistics().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nqueryType
public static void nqueryType(long struct, int value)Unsafe version ofqueryType.
-
nqueryCount
public static void nqueryCount(long struct, int value)Unsafe version ofqueryCount.
-
npipelineStatistics
public static void npipelineStatistics(long struct, int value)Unsafe version ofpipelineStatistics.
-
-