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 queryCountmust be greater than 0
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_QUERY_POOL_CREATE_INFOpNextmust beNULLflagsmust be 0queryTypemust be a validVkQueryTypevalue
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– reserved for future use.queryType– aVkQueryTypevalue specifying the type of queries managed by the pool.queryCount– the number of queries managed by the pool.pipelineStatistics– a bitmask ofVkQueryPipelineStatisticFlagBitsspecifying which counters will be returned in queries on the new pool, as described below in Pipeline Statistics Queries.
Layout
struct VkQueryPoolCreateInfo { VkStructureType sType; void const * pNext; VkQueryPoolCreateFlags flags; VkQueryType queryType; uint32_t queryCount; VkQueryPipelineStatisticFlags pipelineStatistics; }
-
-
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 Modifier and Type Method Description static VkQueryPoolCreateInfocalloc()Returns a newVkQueryPoolCreateInfoinstance allocated withmemCalloc.static VkQueryPoolCreateInfo.Buffercalloc(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemCalloc.static VkQueryPoolCreateInfocallocStack()Returns a newVkQueryPoolCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfo.BuffercallocStack(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theflagsfield.VkQueryPoolCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkQueryPoolCreateInfomalloc()Returns a newVkQueryPoolCreateInfoinstance allocated withmemAlloc.static VkQueryPoolCreateInfo.Buffermalloc(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated withmemAlloc.static VkQueryPoolCreateInfomallocStack()Returns a newVkQueryPoolCreateInfoinstance allocated on the thread-localMemoryStack.static VkQueryPoolCreateInfo.BuffermallocStack(int capacity)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkQueryPoolCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkQueryPoolCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.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()Returns the value of thepipelineStatisticsfield.VkQueryPoolCreateInfopipelineStatistics(int value)Sets the specified value to thepipelineStatisticsfield.longpNext()Returns the value of thepNextfield.VkQueryPoolCreateInfopNext(long value)Sets the specified value to thepNextfield.intqueryCount()Returns the value of thequeryCountfield.VkQueryPoolCreateInfoqueryCount(int value)Sets the specified value to thequeryCountfield.intqueryType()Returns the value of thequeryTypefield.VkQueryPoolCreateInfoqueryType(int value)Sets the specified value to thequeryTypefield.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()Returns the value of thesTypefield.VkQueryPoolCreateInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
queryType
public int queryType()
Returns the value of thequeryTypefield.
-
queryCount
public int queryCount()
Returns the value of thequeryCountfield.
-
pipelineStatistics
public int pipelineStatistics()
Returns the value of thepipelineStatisticsfield.
-
sType
public VkQueryPoolCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkQueryPoolCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkQueryPoolCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
queryType
public VkQueryPoolCreateInfo queryType(int value)
Sets the specified value to thequeryTypefield.
-
queryCount
public VkQueryPoolCreateInfo queryCount(int value)
Sets the specified value to thequeryCountfield.
-
pipelineStatistics
public VkQueryPoolCreateInfo pipelineStatistics(int value)
Sets the specified value to thepipelineStatisticsfield.
-
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
public static VkQueryPoolCreateInfo mallocStack()
Returns a newVkQueryPoolCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkQueryPoolCreateInfo callocStack()
Returns a newVkQueryPoolCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkQueryPoolCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkQueryPoolCreateInfo callocStack(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
-
mallocStack
public static VkQueryPoolCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkQueryPoolCreateInfo.Buffer callocStack(int capacity)
Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkQueryPoolCreateInfo.Buffer mallocStack(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
-
callocStack
public static VkQueryPoolCreateInfo.Buffer callocStack(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.
-
-