Class VkPerformanceCounterKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPerformanceCounterKHR>
org.lwjgl.vulkan.VkPerformanceCounterKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPerformanceCounterKHR extends org.lwjgl.system.Struct<VkPerformanceCounterKHR> implements org.lwjgl.system.NativeResource
Structure providing information about a counter.
Valid Usage (Implicit)
See Also

EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR

Layout


 struct VkPerformanceCounterKHR {
     VkStructureType sType();
     void * pNext();
     VkPerformanceCounterUnitKHR unit();
     VkPerformanceCounterScopeKHR scope();
     VkPerformanceCounterStorageKHR storage();
     uint8_t uuid()[VK_UUID_SIZE];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • UNIT

      public static final int UNIT
      The struct member offsets.
    • SCOPE

      public static final int SCOPE
      The struct member offsets.
    • STORAGE

      public static final int STORAGE
      The struct member offsets.
    • UUID

      public static final int UUID
      The struct member offsets.
  • Constructor Details

    • VkPerformanceCounterKHR

      public VkPerformanceCounterKHR(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkPerformanceCounterKHR>
    • sType

      public int sType()
      a VkStructureType value identifying 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 ByteBuffer uuid()
      an array of size UUID_SIZE, containing 8-bit values that represent a universally unique identifier for the counter of the physical device.
    • 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.
    • sType

      public VkPerformanceCounterKHR sType(int value)
      Sets the specified value to the sType() field.
    • sType$Default

      public VkPerformanceCounterKHR sType$Default()
      Sets the STRUCTURE_TYPE_PERFORMANCE_COUNTER_KHR value to the sType() field.
    • pNext

      public VkPerformanceCounterKHR pNext(long value)
      Sets the specified value to the pNext() field.
    • set

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

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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.
    • createSafe

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

      public static VkPerformanceCounterKHR.Buffer malloc(int capacity)
      Returns a new VkPerformanceCounterKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkPerformanceCounterKHR.Buffer calloc(int capacity)
      Returns a new VkPerformanceCounterKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkPerformanceCounterKHR.Buffer create(int capacity)
      Returns a new VkPerformanceCounterKHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkPerformanceCounterKHR.Buffer create(long address, int capacity)
      Create a VkPerformanceCounterKHR.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkPerformanceCounterKHR.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • 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
    • malloc

      public static VkPerformanceCounterKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkPerformanceCounterKHR.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      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:
      capacity - the buffer capacity
      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().
    • 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 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.