Package org.lwjgl.sdl
Class SDL_GPUVertexInputState
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SDL_GPUVertexInputState
extends Struct<SDL_GPUVertexInputState>
implements NativeResource
struct SDL_GPUVertexInputState {
SDL_GPUVertexBufferDescription const * vertex_buffer_descriptions;
Uint32 num_vertex_buffers;
SDL_GPUVertexAttribute const * vertex_attributes;
Uint32 num_vertex_attributes;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUVertexInputState(ByteBuffer container) Creates aSDL_GPUVertexInputStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUVertexInputStatecalloc()Returns a newSDL_GPUVertexInputStateinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUVertexInputState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUVertexInputStatecalloc(MemoryStack stack) Returns a newSDL_GPUVertexInputStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUVertexInputStatecreate()Returns a newSDL_GPUVertexInputStateinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withBufferUtils.static SDL_GPUVertexInputStatecreate(long address) Returns a newSDL_GPUVertexInputStateinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUVertexInputState.Bufferinstance at the specified memory.static @Nullable SDL_GPUVertexInputStatecreateSafe(long address) static @Nullable SDL_GPUVertexInputState.BuffercreateSafe(long address, int capacity) static SDL_GPUVertexInputStatemalloc()Returns a newSDL_GPUVertexInputStateinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUVertexInputState.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUVertexInputStatemalloc(MemoryStack stack) Returns a newSDL_GPUVertexInputStateinstance allocated on the specifiedMemoryStack.static intnnum_vertex_attributes(long struct) Unsafe version ofnum_vertex_attributes().static voidnnum_vertex_attributes(long struct, int value) Sets the specified value to thenum_vertex_attributesfield of the specifiedstruct.static intnnum_vertex_buffers(long struct) Unsafe version ofnum_vertex_buffers().static voidnnum_vertex_buffers(long struct, int value) Sets the specified value to thenum_vertex_buffersfield of the specifiedstruct.intnum_vertex_attributes(int value) Sets the specified value to thenum_vertex_attributesfield.intnum_vertex_buffers(int value) Sets the specified value to thenum_vertex_buffersfield.static @Nullable SDL_GPUVertexAttribute.Buffernvertex_attributes(long struct) Unsafe version ofvertex_attributes().static voidnvertex_attributes(long struct, @Nullable SDL_GPUVertexAttribute.Buffer value) Unsafe version ofvertex_attributes.static @Nullable SDL_GPUVertexBufferDescription.Buffernvertex_buffer_descriptions(long struct) Unsafe version ofvertex_buffer_descriptions().static voidnvertex_buffer_descriptions(long struct, @Nullable SDL_GPUVertexBufferDescription.Buffer value) Unsafe version ofvertex_buffer_descriptions.set(@Nullable SDL_GPUVertexBufferDescription.Buffer vertex_buffer_descriptions, int num_vertex_buffers, @Nullable SDL_GPUVertexAttribute.Buffer vertex_attributes, int num_vertex_attributes) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).@Nullable SDL_GPUVertexAttribute.Buffervertex_attributes(@Nullable SDL_GPUVertexAttribute.Buffer value) Sets the address of the specifiedSDL_GPUVertexAttribute.Bufferto thevertex_attributesfield.@Nullable SDL_GPUVertexBufferDescription.Buffervertex_buffer_descriptions(@Nullable SDL_GPUVertexBufferDescription.Buffer value) Sets the address of the specifiedSDL_GPUVertexBufferDescription.Bufferto thevertex_buffer_descriptionsfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERTEX_BUFFER_DESCRIPTIONS
public static final int VERTEX_BUFFER_DESCRIPTIONSThe struct member offsets. -
NUM_VERTEX_BUFFERS
public static final int NUM_VERTEX_BUFFERSThe struct member offsets. -
VERTEX_ATTRIBUTES
public static final int VERTEX_ATTRIBUTESThe struct member offsets. -
NUM_VERTEX_ATTRIBUTES
public static final int NUM_VERTEX_ATTRIBUTESThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUVertexInputState
Creates aSDL_GPUVertexInputStateinstance at the current position of the specifiedByteBuffercontainer. 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
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SDL_GPUVertexInputState>
-
vertex_buffer_descriptions
- Returns:
- a
SDL_GPUVertexBufferDescription.Bufferview of the struct array pointed to by thevertex_buffer_descriptionsfield.
-
num_vertex_buffers
public int num_vertex_buffers()- Returns:
- the value of the
num_vertex_buffersfield.
-
vertex_attributes
- Returns:
- a
SDL_GPUVertexAttribute.Bufferview of the struct array pointed to by thevertex_attributesfield.
-
num_vertex_attributes
public int num_vertex_attributes()- Returns:
- the value of the
num_vertex_attributesfield.
-
vertex_buffer_descriptions
public SDL_GPUVertexInputState vertex_buffer_descriptions(@Nullable SDL_GPUVertexBufferDescription.Buffer value) Sets the address of the specifiedSDL_GPUVertexBufferDescription.Bufferto thevertex_buffer_descriptionsfield. -
num_vertex_buffers
Sets the specified value to thenum_vertex_buffersfield. -
vertex_attributes
Sets the address of the specifiedSDL_GPUVertexAttribute.Bufferto thevertex_attributesfield. -
num_vertex_attributes
Sets the specified value to thenum_vertex_attributesfield. -
set
public SDL_GPUVertexInputState set(@Nullable SDL_GPUVertexBufferDescription.Buffer vertex_buffer_descriptions, int num_vertex_buffers, @Nullable SDL_GPUVertexAttribute.Buffer vertex_attributes, int num_vertex_attributes) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_GPUVertexInputStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUVertexInputStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUVertexInputStateinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUVertexInputStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUVertexInputState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUVertexInputState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUVertexInputStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVertexInputStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUVertexInputState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVertexInputState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvertex_buffer_descriptions
public static @Nullable SDL_GPUVertexBufferDescription.Buffer nvertex_buffer_descriptions(long struct) Unsafe version ofvertex_buffer_descriptions(). -
nnum_vertex_buffers
public static int nnum_vertex_buffers(long struct) Unsafe version ofnum_vertex_buffers(). -
nvertex_attributes
Unsafe version ofvertex_attributes(). -
nnum_vertex_attributes
public static int nnum_vertex_attributes(long struct) Unsafe version ofnum_vertex_attributes(). -
nvertex_buffer_descriptions
public static void nvertex_buffer_descriptions(long struct, @Nullable SDL_GPUVertexBufferDescription.Buffer value) Unsafe version ofvertex_buffer_descriptions. -
nnum_vertex_buffers
public static void nnum_vertex_buffers(long struct, int value) Sets the specified value to thenum_vertex_buffersfield of the specifiedstruct. -
nvertex_attributes
Unsafe version ofvertex_attributes. -
nnum_vertex_attributes
public static void nnum_vertex_attributes(long struct, int value) Sets the specified value to thenum_vertex_attributesfield of the specifiedstruct.
-