Class VkTensorCopyARM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkTensorCopyARM extends Struct<VkTensorCopyARM> implements NativeResource

 struct VkTensorCopyARM {
     VkStructureType sType;
     void const * pNext;
     uint32_t dimensionCount;
     uint64_t const * pSrcOffset;
     uint64_t const * pDstOffset;
     uint64_t const * pExtent;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • DIMENSIONCOUNT

      public static final int DIMENSIONCOUNT
      The struct member offsets.
    • PSRCOFFSET

      public static final int PSRCOFFSET
      The struct member offsets.
    • PDSTOFFSET

      public static final int PDSTOFFSET
      The struct member offsets.
    • PEXTENT

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

    • VkTensorCopyARM

      public VkTensorCopyARM(ByteBuffer container)
      Creates a VkTensorCopyARM 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<VkTensorCopyARM>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • dimensionCount

      public int dimensionCount()
      Returns:
      the value of the dimensionCount field.
    • pSrcOffset

      public @Nullable LongBuffer pSrcOffset()
      Returns:
      a LongBuffer view of the data pointed to by the pSrcOffset field.
    • pDstOffset

      public @Nullable LongBuffer pDstOffset()
      Returns:
      a LongBuffer view of the data pointed to by the pDstOffset field.
    • pExtent

      public @Nullable LongBuffer pExtent()
      Returns:
      a LongBuffer view of the data pointed to by the pExtent field.
    • sType

      public VkTensorCopyARM sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkTensorCopyARM sType$Default()
      Sets the STRUCTURE_TYPE_TENSOR_COPY_ARM value to the sType field.
    • pNext

      public VkTensorCopyARM pNext(long value)
      Sets the specified value to the pNext field.
    • dimensionCount

      public VkTensorCopyARM dimensionCount(int value)
      Sets the specified value to the dimensionCount field.
    • pSrcOffset

      public VkTensorCopyARM pSrcOffset(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pSrcOffset field.
    • pDstOffset

      public VkTensorCopyARM pDstOffset(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pDstOffset field.
    • pExtent

      public VkTensorCopyARM pExtent(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pExtent field.
    • set

      public VkTensorCopyARM set(int sType, long pNext, int dimensionCount, @Nullable LongBuffer pSrcOffset, @Nullable LongBuffer pDstOffset, @Nullable LongBuffer pExtent)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • ndimensionCount

      public static int ndimensionCount(long struct)
      Unsafe version of dimensionCount().
    • npSrcOffset

      public static @Nullable LongBuffer npSrcOffset(long struct)
      Unsafe version of pSrcOffset.
    • npDstOffset

      public static @Nullable LongBuffer npDstOffset(long struct)
      Unsafe version of pDstOffset.
    • npExtent

      public static @Nullable LongBuffer npExtent(long struct)
      Unsafe version of pExtent.
    • 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.
    • ndimensionCount

      public static void ndimensionCount(long struct, int value)
      Sets the specified value to the dimensionCount field of the specified struct.
    • npSrcOffset

      public static void npSrcOffset(long struct, @Nullable LongBuffer value)
      Unsafe version of pSrcOffset.
    • npDstOffset

      public static void npDstOffset(long struct, @Nullable LongBuffer value)
      Unsafe version of pDstOffset.
    • npExtent

      public static void npExtent(long struct, @Nullable LongBuffer value)
      Unsafe version of pExtent.