Class VkBufferCopy

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkBufferCopy extends Struct<VkBufferCopy> implements NativeResource

 struct VkBufferCopy {
     VkDeviceSize srcOffset;
     VkDeviceSize dstOffset;
     VkDeviceSize size;
 }
  • Field Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SRCOFFSET

      public static final int SRCOFFSET
      The struct member offsets.
    • DSTOFFSET

      public static final int DSTOFFSET
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
  • Constructor Details

    • VkBufferCopy

      public VkBufferCopy(ByteBuffer container)
      Creates a VkBufferCopy 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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkBufferCopy>
    • srcOffset

      public long srcOffset()
      Returns:
      the value of the srcOffset field.
    • dstOffset

      public long dstOffset()
      Returns:
      the value of the dstOffset field.
    • size

      public long size()
      Returns:
      the value of the size field.
    • srcOffset

      public VkBufferCopy srcOffset(long value)
      Sets the specified value to the srcOffset field.
    • dstOffset

      public VkBufferCopy dstOffset(long value)
      Sets the specified value to the dstOffset field.
    • size

      public VkBufferCopy size(long value)
      Sets the specified value to the size field.
    • set

      public VkBufferCopy set(long srcOffset, long dstOffset, long size)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static VkBufferCopy mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkBufferCopy callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkBufferCopy mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkBufferCopy callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkBufferCopy.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkBufferCopy.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkBufferCopy.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkBufferCopy.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

      public static VkBufferCopy.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkBufferCopy.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
    • nsrcOffset

      public static long nsrcOffset(long struct)
      Unsafe version of srcOffset().
    • ndstOffset

      public static long ndstOffset(long struct)
      Unsafe version of dstOffset().
    • nsize

      public static long nsize(long struct)
      Unsafe version of size().
    • nsrcOffset

      public static void nsrcOffset(long struct, long value)
      Unsafe version of srcOffset.
    • ndstOffset

      public static void ndstOffset(long struct, long value)
      Unsafe version of dstOffset.
    • nsize

      public static void nsize(long struct, long value)
      Unsafe version of size.