Class VkPerformanceCounterResultKHR

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

    public class VkPerformanceCounterResultKHR
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INT32, INT64, UINT32, UINT64, FLOAT32, FLOAT64

        The struct member offsets.
    • Constructor Detail

      • VkPerformanceCounterResultKHR

        public VkPerformanceCounterResultKHR​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • 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​(long address)
        Returns a new VkPerformanceCounterResultKHR instance for the specified memory address.
      • 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
      • 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.