Class VkBufferMemoryBarrier

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkBufferMemoryBarrier extends Struct<VkBufferMemoryBarrier> implements NativeResource

 struct VkBufferMemoryBarrier {
     VkStructureType sType;
     void const * pNext;
     VkAccessFlags srcAccessMask;
     VkAccessFlags dstAccessMask;
     uint32_t srcQueueFamilyIndex;
     uint32_t dstQueueFamilyIndex;
     VkBuffer buffer;
     VkDeviceSize offset;
     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.
    • STYPE

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

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

      public static final int SRCACCESSMASK
      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.
    • BUFFER

      public static final int BUFFER
      The struct member offsets.
    • OFFSET

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

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

    • VkBufferMemoryBarrier

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

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

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

      public int srcAccessMask()
      Returns:
      the value of the srcAccessMask field.
    • dstAccessMask

      public int 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.
    • buffer

      public long buffer()
      Returns:
      the value of the buffer field.
    • offset

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

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

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

      public VkBufferMemoryBarrier sType$Default()
      Sets the STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER value to the sType field.
    • pNext

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

      Prepends the specified VkExternalMemoryAcquireUnmodifiedEXT value to the pNext chain.
    • srcAccessMask

      public VkBufferMemoryBarrier srcAccessMask(int value)
      Sets the specified value to the srcAccessMask field.
    • dstAccessMask

      public VkBufferMemoryBarrier dstAccessMask(int value)
      Sets the specified value to the dstAccessMask field.
    • srcQueueFamilyIndex

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

      public VkBufferMemoryBarrier dstQueueFamilyIndex(int value)
      Sets the specified value to the dstQueueFamilyIndex field.
    • buffer

      public VkBufferMemoryBarrier buffer(long value)
      Sets the specified value to the buffer field.
    • offset

      public VkBufferMemoryBarrier offset(long value)
      Sets the specified value to the offset field.
    • size

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int 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().
    • nbuffer

      public static long nbuffer(long struct)
      Unsafe version of buffer().
    • noffset

      public static long noffset(long struct)
      Unsafe version of offset().
    • nsize

      public static long nsize(long struct)
      Unsafe version of size().
    • 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.
    • nsrcAccessMask

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

      public static void ndstAccessMask(long struct, int 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.
    • nbuffer

      public static void nbuffer(long struct, long value)
      Unsafe version of buffer.
    • noffset

      public static void noffset(long struct, long value)
      Unsafe version of offset.
    • nsize

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