Package org.lwjgl.sdl

Class SDL_GPUIndirectDrawCommand.Buffer

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

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

    • Buffer

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

    • num_vertices

      public int num_vertices()
      Returns:
      the value of the num_vertices field.
    • num_instances

      public int num_instances()
      Returns:
      the value of the num_instances field.
    • first_vertex

      public int first_vertex()
      Returns:
      the value of the first_vertex field.
    • first_instance

      public int first_instance()
      Returns:
      the value of the first_instance field.
    • num_vertices

      public SDL_GPUIndirectDrawCommand.Buffer num_vertices(int value)
      Sets the specified value to the num_vertices field.
    • num_instances

      public SDL_GPUIndirectDrawCommand.Buffer num_instances(int value)
      Sets the specified value to the num_instances field.
    • first_vertex

      public SDL_GPUIndirectDrawCommand.Buffer first_vertex(int value)
      Sets the specified value to the first_vertex field.
    • first_instance

      public SDL_GPUIndirectDrawCommand.Buffer first_instance(int value)
      Sets the specified value to the first_instance field.