Class VkBufferImageCopy2

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, BUFFEROFFSET, BUFFERROWLENGTH, BUFFERIMAGEHEIGHT, IMAGESUBRESOURCE, IMAGEOFFSET, IMAGEEXTENT

        The struct member offsets.
    • Constructor Detail

      • VkBufferImageCopy2

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

        public long bufferOffset()
        the offset in bytes from the start of the buffer object where the image data is copied from or to.
      • bufferRowLength

        public int bufferRowLength()
        bufferRowLength and bufferImageHeight specify in texels a subregion of a larger two- or three-dimensional image in buffer memory, and control the addressing calculations. If either of these values is zero, that aspect of the buffer memory is considered to be tightly packed according to the imageExtent.
      • bufferImageHeight

        public int bufferImageHeight()
        see bufferRowLength
      • imageOffset

        public VkOffset3D imageOffset()
        selects the initial x, y, z offsets in texels of the sub-region of the source or destination image data.
      • imageExtent

        public VkExtent3D imageExtent()
        the size in texels of the image to copy in width, height and depth.
      • malloc

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

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

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

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

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

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

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

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

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

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

        public static long nbufferOffset​(long struct)
        Unsafe version of bufferOffset().
      • nbufferRowLength

        public static int nbufferRowLength​(long struct)
        Unsafe version of bufferRowLength().
      • nbufferImageHeight

        public static int nbufferImageHeight​(long struct)
        Unsafe version of bufferImageHeight().
      • 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.
      • nbufferOffset

        public static void nbufferOffset​(long struct,
                                         long value)
        Unsafe version of bufferOffset.
      • nbufferRowLength

        public static void nbufferRowLength​(long struct,
                                            int value)
        Unsafe version of bufferRowLength.
      • nbufferImageHeight

        public static void nbufferImageHeight​(long struct,
                                              int value)
        Unsafe version of bufferImageHeight.
      • nimageOffset

        public static void nimageOffset​(long struct,
                                        VkOffset3D value)
        Unsafe version of imageOffset.
      • nimageExtent

        public static void nimageExtent​(long struct,
                                        VkExtent3D value)
        Unsafe version of imageExtent.