Class VkTensorDescriptionARM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkTensorDescriptionARM extends Struct<VkTensorDescriptionARM> implements NativeResource

 struct VkTensorDescriptionARM {
     VkStructureType sType;
     void const * pNext;
     VkTensorTilingARM tiling;
     VkFormat format;
     uint32_t dimensionCount;
     int64_t const * pDimensions;
     int64_t const * pStrides;
     VkTensorUsageFlagsARM usage;
 }
  • 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.
    • TILING

      public static final int TILING
      The struct member offsets.
    • FORMAT

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

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

      public static final int PDIMENSIONS
      The struct member offsets.
    • PSTRIDES

      public static final int PSTRIDES
      The struct member offsets.
    • USAGE

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

    • VkTensorDescriptionARM

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

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

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

      public int tiling()
      Returns:
      the value of the tiling field.
    • format

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

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

      public LongBuffer pDimensions()
      Returns:
      a LongBuffer view of the data pointed to by the pDimensions field.
    • pStrides

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

      public long usage()
      Returns:
      the value of the usage field.
    • sType

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

      public VkTensorDescriptionARM sType$Default()
      Sets the STRUCTURE_TYPE_TENSOR_DESCRIPTION_ARM value to the sType field.
    • pNext

      public VkTensorDescriptionARM pNext(long value)
      Sets the specified value to the pNext field.
    • tiling

      public VkTensorDescriptionARM tiling(int value)
      Sets the specified value to the tiling field.
    • format

      public VkTensorDescriptionARM format(int value)
      Sets the specified value to the format field.
    • dimensionCount

      public VkTensorDescriptionARM dimensionCount(int value)
      Sets the specified value to the dimensionCount field.
    • pDimensions

      public VkTensorDescriptionARM pDimensions(LongBuffer value)
      Sets the address of the specified LongBuffer to the pDimensions field.
    • pStrides

      public VkTensorDescriptionARM pStrides(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the pStrides field.
    • usage

      public VkTensorDescriptionARM usage(long value)
      Sets the specified value to the usage field.
    • set

      public VkTensorDescriptionARM set(int sType, long pNext, int tiling, int format, int dimensionCount, LongBuffer pDimensions, @Nullable LongBuffer pStrides, long usage)
      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 VkTensorDescriptionARM malloc()
      Returns a new VkTensorDescriptionARM instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ntiling(long struct)
      Unsafe version of tiling().
    • nformat

      public static int nformat(long struct)
      Unsafe version of format().
    • ndimensionCount

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

      public static LongBuffer npDimensions(long struct)
      Unsafe version of pDimensions.
    • npStrides

      public static @Nullable LongBuffer npStrides(long struct)
      Unsafe version of pStrides.
    • nusage

      public static long nusage(long struct)
      Unsafe version of usage().
    • 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.
    • ntiling

      public static void ntiling(long struct, int value)
      Unsafe version of tiling.
    • nformat

      public static void nformat(long struct, int value)
      Unsafe version of format.
    • ndimensionCount

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

      public static void npDimensions(long struct, LongBuffer value)
      Unsafe version of pDimensions.
    • npStrides

      public static void npStrides(long struct, @Nullable LongBuffer value)
      Unsafe version of pStrides.
    • nusage

      public static void nusage(long struct, long value)
      Unsafe version of usage.
    • validate

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