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;
SDL_GPUVertexInputState vertex_input_state;
SDL_GPUPrimitiveType primitive_type;
SDL_GPURasterizerState rasterizer_state;
SDL_GPUMultisampleState multisample_state;
SDL_GPUDepthStencilState depth_stencil_state;
SDL_GPUGraphicsPipelineTargetInfo target_info;
SDL_PropertiesID props;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofSDL_GPUGraphicsPipelineCreateInfostructs.Nested 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 member offsets.static final intThe struct member offsets.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.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_GPUGraphicsPipelineCreateInfo(ByteBuffer container) Creates aSDL_GPUGraphicsPipelineCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withBufferUtils.create(long address) Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUGraphicsPipelineCreateInfocreateSafe(long address) static @Nullable SDL_GPUGraphicsPipelineCreateInfo.BuffercreateSafe(long address, int capacity) depth_stencil_state(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUDepthStencilStateto thedepth_stencil_statefield.longfragment_shader(long value) Sets the specified value to thefragment_shaderfield.malloc()Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.multisample_state(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUMultisampleStateto themultisample_statefield.static SDL_GPUDepthStencilStatendepth_stencil_state(long struct) Unsafe version ofdepth_stencil_state().static voidndepth_stencil_state(long struct, SDL_GPUDepthStencilState value) Unsafe version ofdepth_stencil_state.static longnfragment_shader(long struct) Unsafe version offragment_shader().static voidnfragment_shader(long struct, long value) Unsafe version offragment_shader.static SDL_GPUMultisampleStatenmultisample_state(long struct) Unsafe version ofmultisample_state().static voidnmultisample_state(long struct, SDL_GPUMultisampleState value) Unsafe version ofmultisample_state.static intnprimitive_type(long struct) Unsafe version ofprimitive_type().static voidnprimitive_type(long struct, int value) Unsafe version ofprimitive_type.static intnprops(long struct) Unsafe version ofprops().static voidnprops(long struct, int value) Unsafe version ofprops.static SDL_GPURasterizerStatenrasterizer_state(long struct) Unsafe version ofrasterizer_state().static voidnrasterizer_state(long struct, SDL_GPURasterizerState value) Unsafe version ofrasterizer_state.ntarget_info(long struct) Unsafe version oftarget_info().static voidntarget_info(long struct, SDL_GPUGraphicsPipelineTargetInfo value) Unsafe version oftarget_info.static SDL_GPUVertexInputStatenvertex_input_state(long struct) Unsafe version ofvertex_input_state().static voidnvertex_input_state(long struct, SDL_GPUVertexInputState value) Unsafe version ofvertex_input_state.static longnvertex_shader(long struct) Unsafe version ofvertex_shader().static voidnvertex_shader(long struct, long value) Unsafe version ofvertex_shader.intprimitive_type(int value) Sets the specified value to theprimitive_typefield.intprops()props(int value) Sets the specified value to thepropsfield.rasterizer_state(Consumer<SDL_GPURasterizerState> consumer) Passes therasterizer_statefield to the specifiedConsumer.Copies the specifiedSDL_GPURasterizerStateto therasterizer_statefield.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.intsizeof()Returnssizeof(struct).target_info(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_infofield to the specifiedConsumer.Copies the specifiedSDL_GPUGraphicsPipelineTargetInfoto thetarget_infofield.vertex_input_state(Consumer<SDL_GPUVertexInputState> consumer) Passes thevertex_input_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUVertexInputStateto thevertex_input_statefield.longvertex_shader(long value) Sets the specified value to thevertex_shaderfield.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_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_GPUGraphicsPipelineCreateInfoinstance 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_GPUGraphicsPipelineCreateInfo>
-
vertex_shader
public long vertex_shader()- Returns:
- the value of the
vertex_shaderfield.
-
fragment_shader
public long fragment_shader()- Returns:
- the value of the
fragment_shaderfield.
-
vertex_input_state
- Returns:
- a
SDL_GPUVertexInputStateview of thevertex_input_statefield.
-
primitive_type
public int primitive_type()- Returns:
- the value of the
primitive_typefield.
-
rasterizer_state
- Returns:
- a
SDL_GPURasterizerStateview of therasterizer_statefield.
-
multisample_state
- Returns:
- a
SDL_GPUMultisampleStateview of themultisample_statefield.
-
depth_stencil_state
- Returns:
- a
SDL_GPUDepthStencilStateview of thedepth_stencil_statefield.
-
target_info
- Returns:
- a
SDL_GPUGraphicsPipelineTargetInfoview of thetarget_infofield.
-
props
public int props()- Returns:
- the value of the
propsfield.
-
vertex_shader
Sets the specified value to thevertex_shaderfield. -
fragment_shader
Sets the specified value to thefragment_shaderfield. -
vertex_input_state
Copies the specifiedSDL_GPUVertexInputStateto thevertex_input_statefield. -
vertex_input_state
public SDL_GPUGraphicsPipelineCreateInfo vertex_input_state(Consumer<SDL_GPUVertexInputState> consumer) Passes thevertex_input_statefield to the specifiedConsumer. -
primitive_type
Sets the specified value to theprimitive_typefield. -
rasterizer_state
Copies the specifiedSDL_GPURasterizerStateto therasterizer_statefield. -
rasterizer_state
public SDL_GPUGraphicsPipelineCreateInfo rasterizer_state(Consumer<SDL_GPURasterizerState> consumer) Passes therasterizer_statefield to the specifiedConsumer. -
multisample_state
Copies the specifiedSDL_GPUMultisampleStateto themultisample_statefield. -
multisample_state
public SDL_GPUGraphicsPipelineCreateInfo multisample_state(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_statefield to the specifiedConsumer. -
depth_stencil_state
Copies the specifiedSDL_GPUDepthStencilStateto thedepth_stencil_statefield. -
depth_stencil_state
public SDL_GPUGraphicsPipelineCreateInfo depth_stencil_state(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_statefield to the specifiedConsumer. -
target_info
Copies the specifiedSDL_GPUGraphicsPipelineTargetInfoto thetarget_infofield. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo target_info(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_infofield to the specifiedConsumer. -
props
Sets the specified value to thepropsfield. -
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_GPUGraphicsPipelineCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance 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_GPUGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-