Package org.lwjgl.sdl

Class SDL_GPUIndirectDrawCommand

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUIndirectDrawCommand extends Struct<SDL_GPUIndirectDrawCommand> implements NativeResource

 struct SDL_GPUIndirectDrawCommand {
     Uint32 num_vertices;
     Uint32 num_instances;
     Uint32 first_vertex;
     Uint32 first_instance;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NUM_VERTICES

      public static final int NUM_VERTICES
      The struct member offsets.
    • NUM_INSTANCES

      public static final int NUM_INSTANCES
      The struct member offsets.
    • FIRST_VERTEX

      public static final int FIRST_VERTEX
      The struct member offsets.
    • FIRST_INSTANCE

      public static final int FIRST_INSTANCE
      The struct member offsets.
  • Constructor Details

    • SDL_GPUIndirectDrawCommand

      public SDL_GPUIndirectDrawCommand(ByteBuffer container)
      Creates a SDL_GPUIndirectDrawCommand instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details