Class VkDebugUtilsLabelEXT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, PLABELNAME, COLOR

        The struct member offsets.
    • Constructor Detail

      • VkDebugUtilsLabelEXT

        public VkDebugUtilsLabelEXT​(java.nio.ByteBuffer container)
        Creates a VkDebugUtilsLabelEXT 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.
      • pLabelName, pLabelNameString

        public java.nio.ByteBuffer pLabelName()
        
        public java.lang.String pLabelNameString()
        
        a pointer to a null-terminated UTF-8 string containing the name of the label.
      • color

        public java.nio.FloatBuffer color()
        
        public float color​(int index)
        
        an optional RGBA color value that can be associated with the label. A particular implementation may choose to ignore this color value. The values contain RGBA values in order, in the range 0.0 to 1.0. If all elements in color are set to 0.0 then it is ignored.
      • pLabelName

        public VkDebugUtilsLabelEXT pLabelName​(java.nio.ByteBuffer value)
        Sets the address of the specified encoded string to the pLabelName() field.
      • color

        public VkDebugUtilsLabelEXT color​(int index,
                                          float value)
        Sets the specified value at the specified index of the color() field.
      • set

        public VkDebugUtilsLabelEXT set​(int sType,
                                        long pNext,
                                        java.nio.ByteBuffer pLabelName,
                                        java.nio.FloatBuffer color)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static java.nio.ByteBuffer npLabelName​(long struct)
        Unsafe version of pLabelName().
      • npLabelNameString

        public static java.lang.String npLabelNameString​(long struct)
        Unsafe version of pLabelNameString().
      • ncolor

        public static java.nio.FloatBuffer ncolor​(long struct)
        Unsafe version of color().
      • ncolor

        public static float ncolor​(long struct,
                                   int index)
        Unsafe version of color.
      • 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.
      • npLabelName

        public static void npLabelName​(long struct,
                                       java.nio.ByteBuffer value)
        Unsafe version of pLabelName.
      • ncolor

        public static void ncolor​(long struct,
                                  java.nio.FloatBuffer value)
        Unsafe version of color.
      • ncolor

        public static void ncolor​(long struct,
                                  int index,
                                  float value)
        Unsafe version of color.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate