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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondepth_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.multisample_state(Consumer<SDL_GPUMultisampleState> consumer) Passes themultisample_statefield to the specifiedConsumer.Copies the specifiedSDL_GPUMultisampleStateto themultisample_statefield.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.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.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_GPUGraphicsPipelineCreateInfo.Bufferinstance 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_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.Buffer 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.Buffer 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.Buffer 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.Buffer depth_stencil_state(Consumer<SDL_GPUDepthStencilState> consumer) Passes thedepth_stencil_statefield to the specifiedConsumer. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo.Buffer target_info(SDL_GPUGraphicsPipelineTargetInfo value) Copies the specifiedSDL_GPUGraphicsPipelineTargetInfoto thetarget_infofield. -
target_info
public SDL_GPUGraphicsPipelineCreateInfo.Buffer target_info(Consumer<SDL_GPUGraphicsPipelineTargetInfo> consumer) Passes thetarget_infofield to the specifiedConsumer. -
props
Sets the specified value to thepropsfield.
-