Package org.lwjgl.sdl
Class SDL_GPUGraphicsPipelineCreateInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SDL_GPUGraphicsPipelineCreateInfo>
org.lwjgl.sdl.SDL_GPUGraphicsPipelineCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUGraphicsPipelineCreateInfo
extends Struct<SDL_GPUGraphicsPipelineCreateInfo>
implements NativeResource
struct SDL_GPUGraphicsPipelineCreateInfo {
SDL_GPUShader * vertex_shader;
SDL_GPUShader * fragment_shader;
{@link SDL_GPUVertexInputState SDL_GPUVertexInputState} vertex_input_state;
SDL_GPUPrimitiveType primitive_type;
{@link SDL_GPURasterizerState SDL_GPURasterizerState} rasterizer_state;
{@link SDL_GPUMultisampleState SDL_GPUMultisampleState} multisample_state;
{@link SDL_GPUDepthStencilState SDL_GPUDepthStencilState} depth_stencil_state;
{@link SDL_GPUGraphicsPipelineTargetInfo SDL_GPUGraphicsPipelineTargetInfo} target_info;
SDL_PropertiesID props;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofSDL_GPUGraphicsPipelineCreateInfo
structs.Nested 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 member offsets.static final int
The struct member offsets.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.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_GPUGraphicsPipelineCreateInfo
(ByteBuffer container) Creates aSDL_GPUGraphicsPipelineCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUGraphicsPipelineCreateInfo
createSafe
(long address) static @Nullable SDL_GPUGraphicsPipelineCreateInfo.Buffer
createSafe
(long address, int capacity) depth_stencil_state
(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUDepthStencilState
to thedepth_stencil_state
field.long
fragment_shader
(long value) Sets the specified value to thefragment_shader
field.malloc()
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
.multisample_state
(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUMultisampleState
to themultisample_state
field.static SDL_GPUDepthStencilState
ndepth_stencil_state
(long struct) Unsafe version ofdepth_stencil_state()
.static void
ndepth_stencil_state
(long struct, SDL_GPUDepthStencilState value) Unsafe version ofdepth_stencil_state
.static long
nfragment_shader
(long struct) Unsafe version offragment_shader()
.static void
nfragment_shader
(long struct, long value) Unsafe version offragment_shader
.static SDL_GPUMultisampleState
nmultisample_state
(long struct) Unsafe version ofmultisample_state()
.static void
nmultisample_state
(long struct, SDL_GPUMultisampleState value) Unsafe version ofmultisample_state
.static int
nprimitive_type
(long struct) Unsafe version ofprimitive_type()
.static void
nprimitive_type
(long struct, int value) Unsafe version ofprimitive_type
.static int
nprops
(long struct) Unsafe version ofprops()
.static void
nprops
(long struct, int value) Unsafe version ofprops
.static SDL_GPURasterizerState
nrasterizer_state
(long struct) Unsafe version ofrasterizer_state()
.static void
nrasterizer_state
(long struct, SDL_GPURasterizerState value) Unsafe version ofrasterizer_state
.ntarget_info
(long struct) Unsafe version oftarget_info()
.static void
ntarget_info
(long struct, SDL_GPUGraphicsPipelineTargetInfo value) Unsafe version oftarget_info
.static SDL_GPUVertexInputState
nvertex_input_state
(long struct) Unsafe version ofvertex_input_state()
.static void
nvertex_input_state
(long struct, SDL_GPUVertexInputState value) Unsafe version ofvertex_input_state
.static long
nvertex_shader
(long struct) Unsafe version ofvertex_shader()
.static void
nvertex_shader
(long struct, long value) Unsafe version ofvertex_shader
.int
primitive_type
(int value) Sets the specified value to theprimitive_type
field.int
props()
props
(int value) Sets the specified value to theprops
field.rasterizer_state
(Consumer<SDL_GPURasterizerState> consumer) Passes therasterizer_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPURasterizerState
to therasterizer_state
field.set
(long vertex_shader, long fragment_shader, SDL_GPUVertexInputState vertex_input_state, int primitive_type, SDL_GPURasterizerState rasterizer_state, SDL_GPUMultisampleState multisample_state, SDL_GPUDepthStencilState depth_stencil_state, SDL_GPUGraphicsPipelineTargetInfo target_info, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.target_info
(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_info
field to the specifiedConsumer
.Copies the specifiedSDL_GPUGraphicsPipelineTargetInfo
to thetarget_info
field.vertex_input_state
(Consumer<SDL_GPUVertexInputState> consumer) Passes thevertex_input_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUVertexInputState
to thevertex_input_state
field.long
vertex_shader
(long value) Sets the specified value to thevertex_shader
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_SHADER
public static final int VERTEX_SHADERThe struct member offsets. -
FRAGMENT_SHADER
public static final int FRAGMENT_SHADERThe struct member offsets. -
VERTEX_INPUT_STATE
public static final int VERTEX_INPUT_STATEThe struct member offsets. -
PRIMITIVE_TYPE
public static final int PRIMITIVE_TYPEThe struct member offsets. -
RASTERIZER_STATE
public static final int RASTERIZER_STATEThe struct member offsets. -
MULTISAMPLE_STATE
public static final int MULTISAMPLE_STATEThe struct member offsets. -
DEPTH_STENCIL_STATE
public static final int DEPTH_STENCIL_STATEThe struct member offsets. -
TARGET_INFO
public static final int TARGET_INFOThe struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUGraphicsPipelineCreateInfo
Creates aSDL_GPUGraphicsPipelineCreateInfo
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_GPUGraphicsPipelineCreateInfo>
-
vertex_shader
public long vertex_shader()- Returns:
- the value of the
vertex_shader
field.
-
fragment_shader
public long fragment_shader()- Returns:
- the value of the
fragment_shader
field.
-
vertex_input_state
- Returns:
- a
SDL_GPUVertexInputState
view of thevertex_input_state
field.
-
primitive_type
public int primitive_type()- Returns:
- the value of the
primitive_type
field.
-
rasterizer_state
- Returns:
- a
SDL_GPURasterizerState
view of therasterizer_state
field.
-
multisample_state
- Returns:
- a
SDL_GPUMultisampleState
view of themultisample_state
field.
-
depth_stencil_state
- Returns:
- a
SDL_GPUDepthStencilState
view of thedepth_stencil_state
field.
-
target_info
- Returns:
- a
SDL_GPUGraphicsPipelineTargetInfo
view of thetarget_info
field.
-
props
public int props()- Returns:
- the value of the
props
field.
-
vertex_shader
Sets the specified value to thevertex_shader
field. -
fragment_shader
Sets the specified value to thefragment_shader
field. -
vertex_input_state
Copies the specifiedSDL_GPUVertexInputState
to thevertex_input_state
field. -
vertex_input_state
public SDL_GPUGraphicsPipelineCreateInfo vertex_input_state(Consumer<SDL_GPUVertexInputState> consumer) Passes thevertex_input_state
field to the specifiedConsumer
. -
primitive_type
Sets the specified value to theprimitive_type
field. -
rasterizer_state
Copies the specifiedSDL_GPURasterizerState
to therasterizer_state
field. -
rasterizer_state
public SDL_GPUGraphicsPipelineCreateInfo rasterizer_state(Consumer<SDL_GPURasterizerState> consumer) Passes therasterizer_state
field to the specifiedConsumer
. -
multisample_state
Copies the specifiedSDL_GPUMultisampleState
to themultisample_state
field. -
multisample_state
public SDL_GPUGraphicsPipelineCreateInfo multisample_state(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_state
field to the specifiedConsumer
. -
depth_stencil_state
Copies the specifiedSDL_GPUDepthStencilState
to thedepth_stencil_state
field. -
depth_stencil_state
public SDL_GPUGraphicsPipelineCreateInfo depth_stencil_state(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_state
field to the specifiedConsumer
. -
target_info
Copies the specifiedSDL_GPUGraphicsPipelineTargetInfo
to thetarget_info
field. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo target_info(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_info
field to the specifiedConsumer
. -
props
Sets the specified value to theprops
field. -
set
public SDL_GPUGraphicsPipelineCreateInfo set(long vertex_shader, long fragment_shader, SDL_GPUVertexInputState vertex_input_state, int primitive_type, SDL_GPURasterizerState rasterizer_state, SDL_GPUMultisampleState multisample_state, SDL_GPUDepthStencilState depth_stencil_state, SDL_GPUGraphicsPipelineTargetInfo target_info, int props) 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_GPUGraphicsPipelineCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable SDL_GPUGraphicsPipelineCreateInfo.Buffer createSafe(long address, int capacity) -
malloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.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_shader
public static long nvertex_shader(long struct) Unsafe version ofvertex_shader()
. -
nfragment_shader
public static long nfragment_shader(long struct) Unsafe version offragment_shader()
. -
nvertex_input_state
Unsafe version ofvertex_input_state()
. -
nprimitive_type
public static int nprimitive_type(long struct) Unsafe version ofprimitive_type()
. -
nrasterizer_state
Unsafe version ofrasterizer_state()
. -
nmultisample_state
Unsafe version ofmultisample_state()
. -
ndepth_stencil_state
Unsafe version ofdepth_stencil_state()
. -
ntarget_info
Unsafe version oftarget_info()
. -
nprops
public static int nprops(long struct) Unsafe version ofprops()
. -
nvertex_shader
public static void nvertex_shader(long struct, long value) Unsafe version ofvertex_shader
. -
nfragment_shader
public static void nfragment_shader(long struct, long value) Unsafe version offragment_shader
. -
nvertex_input_state
Unsafe version ofvertex_input_state
. -
nprimitive_type
public static void nprimitive_type(long struct, int value) Unsafe version ofprimitive_type
. -
nrasterizer_state
Unsafe version ofrasterizer_state
. -
nmultisample_state
Unsafe version ofmultisample_state
. -
ndepth_stencil_state
Unsafe version ofdepth_stencil_state
. -
ntarget_info
Unsafe version oftarget_info
. -
nprops
public static void nprops(long struct, int value) Unsafe version ofprops
.
-