Class VkRect2D

    • Field Detail

      • SIZEOF

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

      • VkRect2D

        public VkRect2D(java.nio.ByteBuffer container)
        Creates a VkRect2D 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 the sizeof(struct).
        Specified by:
        sizeof in class Struct
      • nset

        public VkRect2D nset(long struct)
        Unsafe version of set.
      • set

        public VkRect2D set(VkRect2D src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

        public static VkRect2D create(long address)
        Returns a new VkRect2D instance for the specified memory address or null if the address is NULL.
      • malloc

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

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

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

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

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

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

        public static VkRect2D.Buffer callocStack(int capacity)
        Returns a new VkRect2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static VkRect2D.Buffer callocStack(int capacity,
                                                  MemoryStack stack)
        Returns a new VkRect2D.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