Class VkTensorMemoryBarrierARM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkTensorMemoryBarrierARM extends Struct<VkTensorMemoryBarrierARM> implements NativeResource

 struct VkTensorMemoryBarrierARM {
     VkStructureType sType;
     void const * pNext;
     VkPipelineStageFlags2 srcStageMask;
     VkAccessFlags2 srcAccessMask;
     VkPipelineStageFlags2 dstStageMask;
     VkAccessFlags2 dstAccessMask;
     uint32_t srcQueueFamilyIndex;
     uint32_t dstQueueFamilyIndex;
     VkTensorARM tensor;
 }
  • 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.
    • SRCSTAGEMASK

      public static final int SRCSTAGEMASK
      The struct member offsets.
    • SRCACCESSMASK

      public static final int SRCACCESSMASK
      The struct member offsets.
    • DSTSTAGEMASK

      public static final int DSTSTAGEMASK
      The struct member offsets.
    • DSTACCESSMASK

      public static final int DSTACCESSMASK
      The struct member offsets.
    • SRCQUEUEFAMILYINDEX

      public static final int SRCQUEUEFAMILYINDEX
      The struct member offsets.
    • DSTQUEUEFAMILYINDEX

      public static final int DSTQUEUEFAMILYINDEX
      The struct member offsets.
    • TENSOR

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

    • VkTensorMemoryBarrierARM

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

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

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

      public long srcStageMask()
      Returns:
      the value of the srcStageMask field.
    • srcAccessMask

      public long srcAccessMask()
      Returns:
      the value of the srcAccessMask field.
    • dstStageMask

      public long dstStageMask()
      Returns:
      the value of the dstStageMask field.
    • dstAccessMask

      public long dstAccessMask()
      Returns:
      the value of the dstAccessMask field.
    • srcQueueFamilyIndex

      public int srcQueueFamilyIndex()
      Returns:
      the value of the srcQueueFamilyIndex field.
    • dstQueueFamilyIndex

      public int dstQueueFamilyIndex()
      Returns:
      the value of the dstQueueFamilyIndex field.
    • tensor

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

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

      public VkTensorMemoryBarrierARM sType$Default()
      Sets the STRUCTURE_TYPE_TENSOR_MEMORY_BARRIER_ARM value to the sType field.
    • pNext

      public VkTensorMemoryBarrierARM pNext(long value)
      Sets the specified value to the pNext field.
    • srcStageMask

      public VkTensorMemoryBarrierARM srcStageMask(long value)
      Sets the specified value to the srcStageMask field.
    • srcAccessMask

      public VkTensorMemoryBarrierARM srcAccessMask(long value)
      Sets the specified value to the srcAccessMask field.
    • dstStageMask

      public VkTensorMemoryBarrierARM dstStageMask(long value)
      Sets the specified value to the dstStageMask field.
    • dstAccessMask

      public VkTensorMemoryBarrierARM dstAccessMask(long value)
      Sets the specified value to the dstAccessMask field.
    • srcQueueFamilyIndex

      public VkTensorMemoryBarrierARM srcQueueFamilyIndex(int value)
      Sets the specified value to the srcQueueFamilyIndex field.
    • dstQueueFamilyIndex

      public VkTensorMemoryBarrierARM dstQueueFamilyIndex(int value)
      Sets the specified value to the dstQueueFamilyIndex field.
    • tensor

      public VkTensorMemoryBarrierARM tensor(long value)
      Sets the specified value to the tensor field.
    • set

      public VkTensorMemoryBarrierARM set(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long tensor)
      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 VkTensorMemoryBarrierARM malloc()
      Returns a new VkTensorMemoryBarrierARM instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nsrcStageMask(long struct)
      Unsafe version of srcStageMask().
    • nsrcAccessMask

      public static long nsrcAccessMask(long struct)
      Unsafe version of srcAccessMask().
    • ndstStageMask

      public static long ndstStageMask(long struct)
      Unsafe version of dstStageMask().
    • ndstAccessMask

      public static long ndstAccessMask(long struct)
      Unsafe version of dstAccessMask().
    • nsrcQueueFamilyIndex

      public static int nsrcQueueFamilyIndex(long struct)
      Unsafe version of srcQueueFamilyIndex().
    • ndstQueueFamilyIndex

      public static int ndstQueueFamilyIndex(long struct)
      Unsafe version of dstQueueFamilyIndex().
    • ntensor

      public static long ntensor(long struct)
      Unsafe version of tensor().
    • 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.
    • nsrcStageMask

      public static void nsrcStageMask(long struct, long value)
      Unsafe version of srcStageMask.
    • nsrcAccessMask

      public static void nsrcAccessMask(long struct, long value)
      Unsafe version of srcAccessMask.
    • ndstStageMask

      public static void ndstStageMask(long struct, long value)
      Unsafe version of dstStageMask.
    • ndstAccessMask

      public static void ndstAccessMask(long struct, long value)
      Unsafe version of dstAccessMask.
    • nsrcQueueFamilyIndex

      public static void nsrcQueueFamilyIndex(long struct, int value)
      Unsafe version of srcQueueFamilyIndex.
    • ndstQueueFamilyIndex

      public static void ndstQueueFamilyIndex(long struct, int value)
      Unsafe version of dstQueueFamilyIndex.
    • ntensor

      public static void ntensor(long struct, long value)
      Unsafe version of tensor.