Class VkAttachmentDescription.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new VkAttachmentDescription.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 VkAttachmentDescription.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

    • flags

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

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

      public int samples()
      Returns:
      the value of the samples field.
    • loadOp

      public int loadOp()
      Returns:
      the value of the loadOp field.
    • storeOp

      public int storeOp()
      Returns:
      the value of the storeOp field.
    • stencilLoadOp

      public int stencilLoadOp()
      Returns:
      the value of the stencilLoadOp field.
    • stencilStoreOp

      public int stencilStoreOp()
      Returns:
      the value of the stencilStoreOp field.
    • initialLayout

      public int initialLayout()
      Returns:
      the value of the initialLayout field.
    • finalLayout

      public int finalLayout()
      Returns:
      the value of the finalLayout field.
    • flags

      public VkAttachmentDescription.Buffer flags(int value)
      Sets the specified value to the flags field.
    • format

      public VkAttachmentDescription.Buffer format(int value)
      Sets the specified value to the format field.
    • samples

      public VkAttachmentDescription.Buffer samples(int value)
      Sets the specified value to the samples field.
    • loadOp

      public VkAttachmentDescription.Buffer loadOp(int value)
      Sets the specified value to the loadOp field.
    • storeOp

      public VkAttachmentDescription.Buffer storeOp(int value)
      Sets the specified value to the storeOp field.
    • stencilLoadOp

      public VkAttachmentDescription.Buffer stencilLoadOp(int value)
      Sets the specified value to the stencilLoadOp field.
    • stencilStoreOp

      public VkAttachmentDescription.Buffer stencilStoreOp(int value)
      Sets the specified value to the stencilStoreOp field.
    • initialLayout

      public VkAttachmentDescription.Buffer initialLayout(int value)
      Sets the specified value to the initialLayout field.
    • finalLayout

      public VkAttachmentDescription.Buffer finalLayout(int value)
      Sets the specified value to the finalLayout field.