Package org.lwjgl.sdl

Class SDL_GPUVertexBufferDescription.Buffer

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

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

    • Buffer

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

    • slot

      public int slot()
      Returns:
      the value of the slot field.
    • pitch

      public int pitch()
      Returns:
      the value of the pitch field.
    • input_rate

      public int input_rate()
      Returns:
      the value of the input_rate field.
    • instance_step_rate

      public int instance_step_rate()
      Returns:
      the value of the instance_step_rate field.
    • slot

      public SDL_GPUVertexBufferDescription.Buffer slot(int value)
      Sets the specified value to the slot field.
    • pitch

      public SDL_GPUVertexBufferDescription.Buffer pitch(int value)
      Sets the specified value to the pitch field.
    • input_rate

      public SDL_GPUVertexBufferDescription.Buffer input_rate(int value)
      Sets the specified value to the input_rate field.
    • instance_step_rate

      public SDL_GPUVertexBufferDescription.Buffer instance_step_rate(int value)
      Sets the specified value to the instance_step_rate field.