Class VkDebugMarkerMarkerInfoEXT

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

    public class VkDebugMarkerMarkerInfoEXT
    extends Struct
    implements NativeResource
    Specify parameters of a command buffer marker region.
    Valid Usage (Implicit)
    See Also

    CmdDebugMarkerBeginEXT, CmdDebugMarkerInsertEXT

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • pMarkerName – a pointer to a null-terminated UTF-8 string that contains the name of the marker.
    • color[4] – an optional: RGBA color value that can be associated with the marker. 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.

    Layout

    
     struct VkDebugMarkerMarkerInfoEXT {
         VkStructureType sType;
         void const * pNext;
         char const * pMarkerName;
         float color[4];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • VkDebugMarkerMarkerInfoEXT

        public VkDebugMarkerMarkerInfoEXT​(java.nio.ByteBuffer container)
        Creates a VkDebugMarkerMarkerInfoEXT 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • pMarkerName

        public java.nio.ByteBuffer pMarkerName()
        Returns a ByteBuffer view of the null-terminated string pointed to by the pMarkerName field.
      • pMarkerNameString

        public java.lang.String pMarkerNameString()
        Decodes the null-terminated string pointed to by the pMarkerName field.
      • color

        public java.nio.FloatBuffer color()
        Returns a FloatBuffer view of the color field.
      • color

        public float color​(int index)
        Returns the value at the specified index of the color field.
      • pMarkerName

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

        public VkDebugMarkerMarkerInfoEXT color​(java.nio.FloatBuffer value)
        Copies the specified FloatBuffer to the color field.
      • color

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

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

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

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

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

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

        public static VkDebugMarkerMarkerInfoEXT callocStack​(MemoryStack stack)
        Returns a new VkDebugMarkerMarkerInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • npMarkerName

        public static java.nio.ByteBuffer npMarkerName​(long struct)
        Unsafe version of pMarkerName().
      • npMarkerNameString

        public static java.lang.String npMarkerNameString​(long struct)
        Unsafe version of pMarkerNameString().
      • 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.
      • npMarkerName

        public static void npMarkerName​(long struct,
                                        java.nio.ByteBuffer value)
        Unsafe version of pMarkerName.
      • 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
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array