Class VkQueryPoolCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkQueryPoolCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created query pool.
    Description

    pipelineStatistics is ignored if queryType is not QUERY_TYPE_PIPELINE_STATISTICS.

    Valid Usage
    Valid Usage (Implicit)
    See Also

    CreateQueryPool

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • queryType – a VkQueryType value specifying the type of queries managed by the pool.
    • queryCount – the number of queries managed by the pool.
    • pipelineStatistics – a bitmask of VkQueryPipelineStatisticFlagBits specifying 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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, QUERYTYPE, QUERYCOUNT, PIPELINESTATISTICS

        The struct member offsets.
    • Constructor Detail

      • VkQueryPoolCreateInfo

        public VkQueryPoolCreateInfo​(java.nio.ByteBuffer container)
        Creates a VkQueryPoolCreateInfo 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • queryType

        public int queryType()
        Returns the value of the queryType field.
      • queryCount

        public int queryCount()
        Returns the value of the queryCount field.
      • pipelineStatistics

        public int pipelineStatistics()
        Returns the value of the pipelineStatistics field.
      • pNext

        public VkQueryPoolCreateInfo pNext​(long value)
        Sets the specified value to the pNext field.
      • queryType

        public VkQueryPoolCreateInfo queryType​(int value)
        Sets the specified value to the queryType field.
      • queryCount

        public VkQueryPoolCreateInfo queryCount​(int value)
        Sets the specified value to the queryCount field.
      • pipelineStatistics

        public VkQueryPoolCreateInfo pipelineStatistics​(int value)
        Sets the specified value to the pipelineStatistics field.
      • set

        public VkQueryPoolCreateInfo set​(int sType,
                                         long pNext,
                                         int flags,
                                         int queryType,
                                         int queryCount,
                                         int pipelineStatistics)
        Initializes this struct with the specified values.
      • malloc

        public static VkQueryPoolCreateInfo malloc()
        Returns a new VkQueryPoolCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkQueryPoolCreateInfo calloc()
        Returns a new VkQueryPoolCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkQueryPoolCreateInfo create​(long address)
        Returns a new VkQueryPoolCreateInfo instance for the specified memory address.
      • createSafe

        @Nullable
        public static VkQueryPoolCreateInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • callocStack

        public static VkQueryPoolCreateInfo callocStack()
        Returns a new VkQueryPoolCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkQueryPoolCreateInfo mallocStack​(MemoryStack stack)
        Returns a new VkQueryPoolCreateInfo instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkQueryPoolCreateInfo callocStack​(MemoryStack stack)
        Returns a new VkQueryPoolCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nqueryType

        public static int nqueryType​(long struct)
        Unsafe version of queryType().
      • nqueryCount

        public static int nqueryCount​(long struct)
        Unsafe version of queryCount().
      • npipelineStatistics

        public static int npipelineStatistics​(long struct)
        Unsafe version of pipelineStatistics().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nqueryType

        public static void nqueryType​(long struct,
                                      int value)
        Unsafe version of queryType.
      • nqueryCount

        public static void nqueryCount​(long struct,
                                       int value)
        Unsafe version of queryCount.
      • npipelineStatistics

        public static void npipelineStatistics​(long struct,
                                               int value)
        Unsafe version of pipelineStatistics.