Class VkPerformanceCounterKHR

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, UNIT, SCOPE, STORAGE, UUID

        The struct member offsets.
    • Constructor Detail

      • VkPerformanceCounterKHR

        public VkPerformanceCounterKHR​(java.nio.ByteBuffer container)
        Creates a VkPerformanceCounterKHR 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • unit

        public int unit()
        a VkPerformanceCounterUnitKHR specifying the unit that the counter data will record.
      • scope

        public int scope()
        a VkPerformanceCounterScopeKHR specifying the scope that the counter belongs to.
      • storage

        public int storage()
        a VkPerformanceCounterStorageKHR specifying the storage type that the counter’s data uses.
      • uuid

        public java.nio.ByteBuffer uuid()
        
        public byte uuid​(int index)
        
        an array of size UUID_SIZE, containing 8-bit values that represent a universally unique identifier for the counter of the physical device.
      • set

        public VkPerformanceCounterKHR set​(int sType,
                                           long pNext)
        Initializes this struct with the specified values.
      • malloc

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

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

        public static VkPerformanceCounterKHR create()
        Returns a new VkPerformanceCounterKHR instance allocated with BufferUtils.
      • create

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

        public static VkPerformanceCounterKHR malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkPerformanceCounterKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkPerformanceCounterKHR calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkPerformanceCounterKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkPerformanceCounterKHR.Buffer calloc​(int capacity,
                                                            org.lwjgl.system.MemoryStack stack)
        Returns a new VkPerformanceCounterKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsType

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

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

        public static int nunit​(long struct)
        Unsafe version of unit().
      • nscope

        public static int nscope​(long struct)
        Unsafe version of scope().
      • nstorage

        public static int nstorage​(long struct)
        Unsafe version of storage().
      • nuuid

        public static java.nio.ByteBuffer nuuid​(long struct)
        Unsafe version of uuid().
      • nuuid

        public static byte nuuid​(long struct,
                                 int index)
        Unsafe version of uuid.
      • 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.