Class VkBufferCopy2KHR

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

    public class VkBufferCopy2KHR
    extends VkBufferCopy2
    See VkBufferCopy2.

    Layout

    
     struct VkBufferCopy2KHR {
         VkStructureType sType;
         void const * pNext;
         VkDeviceSize srcOffset;
         VkDeviceSize dstOffset;
         VkDeviceSize size;
     }
    • Constructor Detail

      • VkBufferCopy2KHR

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

      • set

        public VkBufferCopy2KHR set​(int sType,
                                    long pNext,
                                    long srcOffset,
                                    long dstOffset,
                                    long size)
        Initializes this struct with the specified values.
        Overrides:
        set in class VkBufferCopy2
      • set

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

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

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

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

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

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

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

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

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

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

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