Class VkRenderingAreaInfo.Buffer

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

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

    • Buffer

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

      public int viewMask()
      Returns:
      the value of the viewMask field.
    • colorAttachmentCount

      public int colorAttachmentCount()
      Returns:
      the value of the colorAttachmentCount field.
    • pColorAttachmentFormats

      public @Nullable IntBuffer pColorAttachmentFormats()
      Returns:
      a IntBuffer view of the data pointed to by the pColorAttachmentFormats field.
    • depthAttachmentFormat

      public int depthAttachmentFormat()
      Returns:
      the value of the depthAttachmentFormat field.
    • stencilAttachmentFormat

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

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

      public VkRenderingAreaInfo.Buffer sType$Default()
      Sets the STRUCTURE_TYPE_RENDERING_AREA_INFO value to the sType field.
    • pNext

      public VkRenderingAreaInfo.Buffer pNext(long value)
      Sets the specified value to the pNext field.
    • viewMask

      public VkRenderingAreaInfo.Buffer viewMask(int value)
      Sets the specified value to the viewMask field.
    • colorAttachmentCount

      public VkRenderingAreaInfo.Buffer colorAttachmentCount(int value)
      Sets the specified value to the colorAttachmentCount field.
    • pColorAttachmentFormats

      public VkRenderingAreaInfo.Buffer pColorAttachmentFormats(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the pColorAttachmentFormats field.
    • depthAttachmentFormat

      public VkRenderingAreaInfo.Buffer depthAttachmentFormat(int value)
      Sets the specified value to the depthAttachmentFormat field.
    • stencilAttachmentFormat

      public VkRenderingAreaInfo.Buffer stencilAttachmentFormat(int value)
      Sets the specified value to the stencilAttachmentFormat field.