Package org.lwjgl.sdl
Class SDL_GPUGraphicsPipelineCreateInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_GPUGraphicsPipelineCreateInfo.Buffer>
org.lwjgl.system.StructBuffer<SDL_GPUGraphicsPipelineCreateInfo,SDL_GPUGraphicsPipelineCreateInfo.Buffer>
org.lwjgl.sdl.SDL_GPUGraphicsPipelineCreateInfo.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<SDL_GPUGraphicsPipelineCreateInfo>
,NativeResource
,Pointer
- Enclosing class:
SDL_GPUGraphicsPipelineCreateInfo
public static class SDL_GPUGraphicsPipelineCreateInfo.Buffer
extends StructBuffer<SDL_GPUGraphicsPipelineCreateInfo,SDL_GPUGraphicsPipelineCreateInfo.Buffer>
implements NativeResource
An array of
SDL_GPUGraphicsPipelineCreateInfo
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondepth_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.multisample_state
(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_state
field to the specifiedConsumer
.Copies the specifiedSDL_GPUMultisampleState
to themultisample_state
field.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.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.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_GPUGraphicsPipelineCreateInfo.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
SDL_GPUGraphicsPipelineCreateInfo.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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.Buffer 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.Buffer 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.Buffer 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.Buffer depth_stencil_state(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_state
field to the specifiedConsumer
. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo.Buffer target_info(SDL_GPUGraphicsPipelineTargetInfo value) Copies the specifiedSDL_GPUGraphicsPipelineTargetInfo
to thetarget_info
field. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo.Buffer target_info(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_info
field to the specifiedConsumer
. -
props
Sets the specified value to theprops
field.
-