Class VkMultiDrawInfoEXT.Buffer

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

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

    • Buffer

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

    • firstVertex

      public int firstVertex()
      Returns:
      the value of the firstVertex field.
    • vertexCount

      public int vertexCount()
      Returns:
      the value of the vertexCount field.
    • firstVertex

      public VkMultiDrawInfoEXT.Buffer firstVertex(int value)
      Sets the specified value to the firstVertex field.
    • vertexCount

      public VkMultiDrawInfoEXT.Buffer vertexCount(int value)
      Sets the specified value to the vertexCount field.