Class VkPerformanceCounterResultKHR

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

public class VkPerformanceCounterResultKHR extends org.lwjgl.system.Struct<VkPerformanceCounterResultKHR> implements org.lwjgl.system.NativeResource
Union containing a performance counter result.

Layout


 union VkPerformanceCounterResultKHR {
     int32_t int32;
     int64_t int64;
     uint32_t uint32;
     uint64_t uint64;
     float float32;
     double float64;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int INT32
      The struct member offsets.
    • INT64

      public static final int INT64
      The struct member offsets.
    • UINT32

      public static final int UINT32
      The struct member offsets.
    • UINT64

      public static final int UINT64
      The struct member offsets.
    • FLOAT32

      public static final int FLOAT32
      The struct member offsets.
    • FLOAT64

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

    • VkPerformanceCounterResultKHR

      public VkPerformanceCounterResultKHR(ByteBuffer container)
      Creates a VkPerformanceCounterResultKHR 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<VkPerformanceCounterResultKHR>
    • int32

      public int int32()
      Returns:
      the value of the int32 field.
    • int64

      public long int64()
      Returns:
      the value of the int64 field.
    • uint32

      public int uint32()
      Returns:
      the value of the uint32 field.
    • uint64

      public long uint64()
      Returns:
      the value of the uint64 field.
    • float32

      public float float32()
      Returns:
      the value of the float32 field.
    • float64

      public double float64()
      Returns:
      the value of the float64 field.
    • int32

      public VkPerformanceCounterResultKHR int32(int value)
      Sets the specified value to the int32 field.
    • int64

      public VkPerformanceCounterResultKHR int64(long value)
      Sets the specified value to the int64 field.
    • uint32

      public VkPerformanceCounterResultKHR uint32(int value)
      Sets the specified value to the uint32 field.
    • uint64

      public VkPerformanceCounterResultKHR uint64(long value)
      Sets the specified value to the uint64 field.
    • float32

      public VkPerformanceCounterResultKHR float32(float value)
      Sets the specified value to the float32 field.
    • float64

      public VkPerformanceCounterResultKHR float64(double value)
      Sets the specified value to the float64 field.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkPerformanceCounterResultKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkPerformanceCounterResultKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkPerformanceCounterResultKHR.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
    • nint32

      public static int nint32(long struct)
      Unsafe version of int32().
    • nint64

      public static long nint64(long struct)
      Unsafe version of int64().
    • nuint32

      public static int nuint32(long struct)
      Unsafe version of uint32().
    • nuint64

      public static long nuint64(long struct)
      Unsafe version of uint64().
    • nfloat32

      public static float nfloat32(long struct)
      Unsafe version of float32().
    • nfloat64

      public static double nfloat64(long struct)
      Unsafe version of float64().
    • nint32

      public static void nint32(long struct, int value)
      Unsafe version of int32.
    • nint64

      public static void nint64(long struct, long value)
      Unsafe version of int64.
    • nuint32

      public static void nuint32(long struct, int value)
      Unsafe version of uint32.
    • nuint64

      public static void nuint64(long struct, long value)
      Unsafe version of uint64.
    • nfloat32

      public static void nfloat32(long struct, float value)
      Unsafe version of float32.
    • nfloat64

      public static void nfloat64(long struct, double value)
      Unsafe version of float64.