Class VkBufferCopy2KHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBufferCopy2>
org.lwjgl.vulkan.VkBufferCopy2
org.lwjgl.vulkan.VkBufferCopy2KHR
All Implemented Interfaces:
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 Details

    • VkBufferCopy2KHR

      public VkBufferCopy2KHR(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 Details

    • sType

      public VkBufferCopy2KHR sType(int value)
      Sets the specified value to the sType field.
      Overrides:
      sType in class VkBufferCopy2
    • sType$Default

      public VkBufferCopy2KHR sType$Default()
      Sets the STRUCTURE_TYPE_BUFFER_COPY_2 value to the sType field.
      Overrides:
      sType$Default in class VkBufferCopy2
    • pNext

      public VkBufferCopy2KHR pNext(long value)
      Sets the specified value to the pNext field.
      Overrides:
      pNext in class VkBufferCopy2
    • srcOffset

      public VkBufferCopy2KHR srcOffset(long value)
      Sets the specified value to the srcOffset field.
      Overrides:
      srcOffset in class VkBufferCopy2
    • dstOffset

      public VkBufferCopy2KHR dstOffset(long value)
      Sets the specified value to the dstOffset field.
      Overrides:
      dstOffset in class VkBufferCopy2
    • size

      public VkBufferCopy2KHR size(long value)
      Sets the specified value to the size field.
      Overrides:
      size in class VkBufferCopy2
    • 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

      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

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

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

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

      public static VkBufferCopy2KHR.Buffer create(int capacity)
      Returns a new VkBufferCopy2KHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

      public static @Nullable 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate