Class VkMemoryBarrier2.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkMemoryBarrier2>, NativeResource, Pointer
Direct Known Subclasses:
VkMemoryBarrier2KHR.Buffer
Enclosing class:
VkMemoryBarrier2

public static class VkMemoryBarrier2.Buffer extends StructBuffer<VkMemoryBarrier2,VkMemoryBarrier2.Buffer> implements NativeResource
An array of VkMemoryBarrier2 structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkMemoryBarrier2.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkMemoryBarrier2.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.
    • sType

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

      public VkMemoryBarrier2.Buffer sType$Default()
      Sets the STRUCTURE_TYPE_MEMORY_BARRIER_2 value to the sType field.
    • pNext

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

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

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

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

      public VkMemoryBarrier2.Buffer dstAccessMask(long value)
      Sets the specified value to the dstAccessMask field.