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, NativeResource, Pointer
public class VkQueryPoolCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a query pool object should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_QUERY_POOL_CREATE_INFOpNextmust beNULLflagsmust be 0queryTypemust be a validVkQueryTypevalue- 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
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_QUERY_POOL_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future usequeryType– theVkQueryTypetype of queries managed by the poolqueryCount– the number of queries managed by the poolpipelineStatistics– a bitmask indicating which counters will be returned in queries on the new pool. One or more of:
Layout
struct VkQueryPoolCreateInfo { VkStructureType sType; const void * pNext; VkQueryPoolCreateFlags flags; VkQueryType queryType; uint32_t queryCount; VkQueryPipelineStatisticFlags pipelineStatistics; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkQueryPoolCreateInfo.BufferAn array ofVkQueryPoolCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkQueryPoolCreateInfocallocStack(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 ornullif the address isNULL.static VkQueryPoolCreateInfo.Buffercreate(long address, int capacity)Create aVkQueryPoolCreateInfo.Bufferinstance at the specified memory.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, MemoryStack stack)Returns a newVkQueryPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkQueryPoolCreateInfomallocStack(MemoryStack stack)Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.VkQueryPoolCreateInfonset(long struct)Unsafe version ofset.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()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkQueryPoolCreateInfosType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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.
-
nset
public VkQueryPoolCreateInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkQueryPoolCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkQueryPoolCreateInfo callocStack(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, 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, 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
-
-