Class VkPerformanceValueDataINTEL

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

    public class VkPerformanceValueDataINTEL
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Values returned for the parameters.
    Description

    The correct member of the union is determined by the associated VkPerformanceValueTypeINTEL value.

    Valid Usage (Implicit)
    • valueString must be a valid pointer to a valid
    See Also

    VkPerformanceValueINTEL

    Layout

    
     union VkPerformanceValueDataINTEL {
         uint32_t value32;
         uint64_t value64;
         float valueFloat;
         VkBool32 valueBool;
         char const * valueString;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • VALUE32, VALUE64, VALUEFLOAT, VALUEBOOL, VALUESTRING

        The struct member offsets.
    • Constructor Detail

      • VkPerformanceValueDataINTEL

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

        public int value32()
        Returns the value of the value32 field.
      • value64

        public long value64()
        Returns the value of the value64 field.
      • valueFloat

        public float valueFloat()
        Returns the value of the valueFloat field.
      • valueBool

        public boolean valueBool()
        Returns the value of the valueBool field.
      • valueString

        public java.nio.ByteBuffer valueString​(int capacity)
        Returns a ByteBuffer view of the data pointed to by the valueString field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • valueString

        public VkPerformanceValueDataINTEL valueString​(java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the valueString field.
      • malloc

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

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

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

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

        public static VkPerformanceValueDataINTEL mallocStack()
        Returns a new VkPerformanceValueDataINTEL instance allocated on the thread-local MemoryStack.
      • callocStack

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

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

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

        public static VkPerformanceValueDataINTEL.Buffer callocStack​(int capacity,
                                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new VkPerformanceValueDataINTEL.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
      • nvalue32

        public static int nvalue32​(long struct)
        Unsafe version of value32().
      • nvalue64

        public static long nvalue64​(long struct)
        Unsafe version of value64().
      • nvalueFloat

        public static float nvalueFloat​(long struct)
        Unsafe version of valueFloat().
      • nvalueBool

        public static int nvalueBool​(long struct)
        Unsafe version of valueBool().
      • nvalueString

        public static java.nio.ByteBuffer nvalueString​(long struct,
                                                       int capacity)
        Unsafe version of valueString.
      • nvalue32

        public static void nvalue32​(long struct,
                                    int value)
        Unsafe version of value32.
      • nvalue64

        public static void nvalue64​(long struct,
                                    long value)
        Unsafe version of value64.
      • nvalueFloat

        public static void nvalueFloat​(long struct,
                                       float value)
        Unsafe version of valueFloat.
      • nvalueBool

        public static void nvalueBool​(long struct,
                                      int value)
        Unsafe version of valueBool.
      • nvalueString

        public static void nvalueString​(long struct,
                                        java.nio.ByteBuffer value)
        Unsafe version of valueString.