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 {
{@link SDL_GPUVertexBufferDescription SDL_GPUVertexBufferDescription} const * vertex_buffer_descriptions;
Uint32 num_vertex_buffers;
{@link SDL_GPUVertexAttribute SDL_GPUVertexAttribute} const * vertex_attributes;
Uint32 num_vertex_attributes;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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_GPUVertexInputState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUVertexInputState
calloc()
Returns a newSDL_GPUVertexInputState
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUVertexInputState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUVertexInputState
calloc
(MemoryStack stack) Returns a newSDL_GPUVertexInputState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUVertexInputState
create()
Returns a newSDL_GPUVertexInputState
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withBufferUtils
.static SDL_GPUVertexInputState
create
(long address) Returns a newSDL_GPUVertexInputState
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUVertexInputState.Buffer
instance at the specified memory.static @Nullable SDL_GPUVertexInputState
createSafe
(long address) static @Nullable SDL_GPUVertexInputState.Buffer
createSafe
(long address, int capacity) static SDL_GPUVertexInputState
malloc()
Returns a newSDL_GPUVertexInputState
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUVertexInputState.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUVertexInputState
malloc
(MemoryStack stack) Returns a newSDL_GPUVertexInputState
instance allocated on the specifiedMemoryStack
.static int
nnum_vertex_attributes
(long struct) Unsafe version ofnum_vertex_attributes()
.static void
nnum_vertex_attributes
(long struct, int value) Sets the specified value to thenum_vertex_attributes
field of the specifiedstruct
.static int
nnum_vertex_buffers
(long struct) Unsafe version ofnum_vertex_buffers()
.static void
nnum_vertex_buffers
(long struct, int value) Sets the specified value to thenum_vertex_buffers
field of the specifiedstruct
.int
num_vertex_attributes
(int value) Sets the specified value to thenum_vertex_attributes
field.int
num_vertex_buffers
(int value) Sets the specified value to thenum_vertex_buffers
field.static @Nullable SDL_GPUVertexAttribute.Buffer
nvertex_attributes
(long struct) Unsafe version ofvertex_attributes()
.static void
nvertex_attributes
(long struct, @Nullable SDL_GPUVertexAttribute.Buffer value) Unsafe version ofvertex_attributes
.static @Nullable SDL_GPUVertexBufferDescription.Buffer
nvertex_buffer_descriptions
(long struct) Unsafe version ofvertex_buffer_descriptions()
.static void
nvertex_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.int
sizeof()
Returnssizeof(struct)
.@Nullable SDL_GPUVertexAttribute.Buffer
vertex_attributes
(@Nullable SDL_GPUVertexAttribute.Buffer value) Sets the address of the specifiedSDL_GPUVertexAttribute.Buffer
to thevertex_attributes
field.@Nullable SDL_GPUVertexBufferDescription.Buffer
vertex_buffer_descriptions
(@Nullable SDL_GPUVertexBufferDescription.Buffer value) Sets the address of the specifiedSDL_GPUVertexBufferDescription.Buffer
to thevertex_buffer_descriptions
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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_GPUVertexInputState
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SDL_GPUVertexInputState>
-
vertex_buffer_descriptions
- Returns:
- a
SDL_GPUVertexBufferDescription.Buffer
view of the struct array pointed to by thevertex_buffer_descriptions
field.
-
num_vertex_buffers
public int num_vertex_buffers()- Returns:
- the value of the
num_vertex_buffers
field.
-
vertex_attributes
- Returns:
- a
SDL_GPUVertexAttribute.Buffer
view of the struct array pointed to by thevertex_attributes
field.
-
num_vertex_attributes
public int num_vertex_attributes()- Returns:
- the value of the
num_vertex_attributes
field.
-
vertex_buffer_descriptions
public SDL_GPUVertexInputState vertex_buffer_descriptions(@Nullable SDL_GPUVertexBufferDescription.Buffer value) Sets the address of the specifiedSDL_GPUVertexBufferDescription.Buffer
to thevertex_buffer_descriptions
field. -
num_vertex_buffers
Sets the specified value to thenum_vertex_buffers
field. -
vertex_attributes
Sets the address of the specifiedSDL_GPUVertexAttribute.Buffer
to thevertex_attributes
field. -
num_vertex_attributes
Sets the specified value to thenum_vertex_attributes
field. -
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_GPUVertexInputState
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUVertexInputState
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUVertexInputState
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUVertexInputState
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUVertexInputState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUVertexInputState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUVertexInputState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVertexInputState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUVertexInputState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVertexInputState.Buffer
instance allocated on the specifiedMemoryStack
and 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_buffers
field 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_attributes
field of the specifiedstruct
.
-