Class VkMemoryBarrier.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<VkMemoryBarrier>, NativeResource, Pointer
Enclosing class:
VkMemoryBarrier

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

    • Buffer Link icon

      public Buffer(ByteBuffer container)
      Creates a new VkMemoryBarrier.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 VkMemoryBarrier.SIZEOF, and its mark will be undefined.

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

    • Buffer Link icon

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

    • sType Link icon

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

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

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

      public int dstAccessMask()
      Returns:
      the value of the dstAccessMask field.
    • sType Link icon

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

      public VkMemoryBarrier.Buffer sType$Default()
      Sets the STRUCTURE_TYPE_MEMORY_BARRIER value to the sType field.
    • pNext Link icon

      public VkMemoryBarrier.Buffer pNext(long value)
      Sets the specified value to the pNext field.
    • srcAccessMask Link icon

      public VkMemoryBarrier.Buffer srcAccessMask(int value)
      Sets the specified value to the srcAccessMask field.
    • dstAccessMask Link icon

      public VkMemoryBarrier.Buffer dstAccessMask(int value)
      Sets the specified value to the dstAccessMask field.