Class VkCopyTensorInfoARM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkCopyTensorInfoARM extends Struct<VkCopyTensorInfoARM> implements NativeResource

 struct VkCopyTensorInfoARM {
     VkStructureType sType;
     void const * pNext;
     VkTensorARM srcTensor;
     VkTensorARM dstTensor;
     uint32_t regionCount;
     {@link VkTensorCopyARM VkTensorCopyARM} const * pRegions;
 }
  • 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.
    • SRCTENSOR

      public static final int SRCTENSOR
      The struct member offsets.
    • DSTTENSOR

      public static final int DSTTENSOR
      The struct member offsets.
    • REGIONCOUNT

      public static final int REGIONCOUNT
      The struct member offsets.
    • PREGIONS

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

    • VkCopyTensorInfoARM

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

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

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

      public long srcTensor()
      Returns:
      the value of the srcTensor field.
    • dstTensor

      public long dstTensor()
      Returns:
      the value of the dstTensor field.
    • regionCount

      public int regionCount()
      Returns:
      the value of the regionCount field.
    • pRegions

      public VkTensorCopyARM.Buffer pRegions()
      Returns:
      a VkTensorCopyARM.Buffer view of the struct array pointed to by the pRegions field.
    • sType

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

      public VkCopyTensorInfoARM sType$Default()
      Sets the STRUCTURE_TYPE_COPY_TENSOR_INFO_ARM value to the sType field.
    • pNext

      public VkCopyTensorInfoARM pNext(long value)
      Sets the specified value to the pNext field.
    • srcTensor

      public VkCopyTensorInfoARM srcTensor(long value)
      Sets the specified value to the srcTensor field.
    • dstTensor

      public VkCopyTensorInfoARM dstTensor(long value)
      Sets the specified value to the dstTensor field.
    • pRegions

      Sets the address of the specified VkTensorCopyARM.Buffer to the pRegions field.
    • set

      public VkCopyTensorInfoARM set(int sType, long pNext, long srcTensor, long dstTensor, VkTensorCopyARM.Buffer pRegions)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nsrcTensor(long struct)
      Unsafe version of srcTensor().
    • ndstTensor

      public static long ndstTensor(long struct)
      Unsafe version of dstTensor().
    • nregionCount

      public static int nregionCount(long struct)
      Unsafe version of regionCount().
    • npRegions

      public static VkTensorCopyARM.Buffer npRegions(long struct)
      Unsafe version of pRegions().
    • 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.
    • nsrcTensor

      public static void nsrcTensor(long struct, long value)
      Unsafe version of srcTensor.
    • ndstTensor

      public static void ndstTensor(long struct, long value)
      Unsafe version of dstTensor.
    • nregionCount

      public static void nregionCount(long struct, int value)
      Sets the specified value to the regionCount field of the specified struct.
    • npRegions

      public static void npRegions(long struct, VkTensorCopyARM.Buffer value)
      Unsafe version of pRegions.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate