Class SDL_GPURenderStateCreateInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_GPURenderStateCreateInfo.Buffer>
org.lwjgl.system.StructBuffer<SDL_GPURenderStateCreateInfo, SDL_GPURenderStateCreateInfo.Buffer>
org.lwjgl.sdl.SDL_GPURenderStateCreateInfo.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPURenderStateCreateInfo>, NativeResource, Pointer
- Enclosing class:
SDL_GPURenderStateCreateInfo
public static class SDL_GPURenderStateCreateInfo.Buffer
extends StructBuffer<SDL_GPURenderStateCreateInfo, SDL_GPURenderStateCreateInfo.Buffer>
implements NativeResource
An array of
SDL_GPURenderStateCreateInfo structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newSDL_GPURenderStateCreateInfo.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongfragment_shader(long value) Sets the specified value to thefragment_shaderfield.intnum_sampler_bindings(int value) Sets the specified value to thenum_sampler_bindingsfield.intnum_storage_buffers(int value) Sets the specified value to thenum_storage_buffersfield.intnum_storage_textures(int value) Sets the specified value to thenum_storage_texturesfield.intprops()props(int value) Sets the specified value to thepropsfield.@Nullable SDL_GPUTextureSamplerBinding.Buffersampler_bindings(@Nullable SDL_GPUTextureSamplerBinding.Buffer value) Sets the address of the specifiedSDL_GPUTextureSamplerBinding.Bufferto thesampler_bindingsfield.@Nullable PointerBufferstorage_buffers(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_buffersfield.@Nullable PointerBufferstorage_textures(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_texturesfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class 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 Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_GPURenderStateCreateInfo.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_GPURenderStateCreateInfo.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
-
fragment_shader
- Returns:
- the value of the
fragment_shaderfield.
-
num_sampler_bindings
- Returns:
- the value of the
num_sampler_bindingsfield.
-
sampler_bindings
@NativeType("SDL_GPUTextureSamplerBinding const *") public @Nullable SDL_GPUTextureSamplerBinding.Buffer sampler_bindings()- Returns:
- a
SDL_GPUTextureSamplerBinding.Bufferview of the struct array pointed to by thesampler_bindingsfield.
-
num_storage_textures
- Returns:
- the value of the
num_storage_texturesfield.
-
storage_textures
- Returns:
- a
PointerBufferview of the data pointed to by thestorage_texturesfield.
-
num_storage_buffers
- Returns:
- the value of the
num_storage_buffersfield.
-
storage_buffers
- Returns:
- a
PointerBufferview of the data pointed to by thestorage_buffersfield.
-
props
- Returns:
- the value of the
propsfield.
-
fragment_shader
public SDL_GPURenderStateCreateInfo.Buffer fragment_shader(@NativeType("SDL_GPUShader *") long value) Sets the specified value to thefragment_shaderfield. -
num_sampler_bindings
Sets the specified value to thenum_sampler_bindingsfield. -
sampler_bindings
public SDL_GPURenderStateCreateInfo.Buffer sampler_bindings(@NativeType("SDL_GPUTextureSamplerBinding const *") @Nullable SDL_GPUTextureSamplerBinding.Buffer value) Sets the address of the specifiedSDL_GPUTextureSamplerBinding.Bufferto thesampler_bindingsfield. -
num_storage_textures
Sets the specified value to thenum_storage_texturesfield. -
storage_textures
public SDL_GPURenderStateCreateInfo.Buffer storage_textures(@NativeType("SDL_GPUTexture const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_texturesfield. -
num_storage_buffers
Sets the specified value to thenum_storage_buffersfield. -
storage_buffers
public SDL_GPURenderStateCreateInfo.Buffer storage_buffers(@NativeType("SDL_GPUBuffer const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thestorage_buffersfield. -
props
Sets the specified value to thepropsfield.
-