Class SDL_GPUColorTargetInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_GPUColorTargetInfo.Buffer>
org.lwjgl.system.StructBuffer<SDL_GPUColorTargetInfo, SDL_GPUColorTargetInfo.Buffer>
org.lwjgl.sdl.SDL_GPUColorTargetInfo.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPUColorTargetInfo>, NativeResource, Pointer
- Enclosing class:
SDL_GPUColorTargetInfo
public static class SDL_GPUColorTargetInfo.Buffer
extends StructBuffer<SDL_GPUColorTargetInfo, SDL_GPUColorTargetInfo.Buffer>
implements NativeResource
An array of
SDL_GPUColorTargetInfo 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_GPUColorTargetInfo.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionclear_color(Consumer<SDL_FColor> consumer) Passes theclear_colorfield to the specifiedConsumer.clear_color(SDL_FColor value) Copies the specifiedSDL_FColorto theclear_colorfield.booleancycle()cycle(boolean value) Sets the specified value to thecyclefield.booleancycle_resolve_texture(boolean value) Sets the specified value to thecycle_resolve_texturefield.intlayer_or_depth_plane(int value) Sets the specified value to thelayer_or_depth_planefield.intload_op()load_op(int value) Sets the specified value to theload_opfield.intmip_level(int value) Sets the specified value to themip_levelfield.intresolve_layer(int value) Sets the specified value to theresolve_layerfield.intresolve_mip_level(int value) Sets the specified value to theresolve_mip_levelfield.longresolve_texture(long value) Sets the specified value to theresolve_texturefield.intstore_op()store_op(int value) Sets the specified value to thestore_opfield.longtexture()texture(long value) Sets the specified value to thetexturefield.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_GPUColorTargetInfo.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_GPUColorTargetInfo.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
-
texture
- Returns:
- the value of the
texturefield.
-
mip_level
- Returns:
- the value of the
mip_levelfield.
-
layer_or_depth_plane
- Returns:
- the value of the
layer_or_depth_planefield.
-
clear_color
- Returns:
- a
SDL_FColorview of theclear_colorfield.
-
load_op
- Returns:
- the value of the
load_opfield.
-
store_op
- Returns:
- the value of the
store_opfield.
-
resolve_texture
- Returns:
- the value of the
resolve_texturefield.
-
resolve_mip_level
- Returns:
- the value of the
resolve_mip_levelfield.
-
resolve_layer
- Returns:
- the value of the
resolve_layerfield.
-
cycle
- Returns:
- the value of the
cyclefield.
-
cycle_resolve_texture
- Returns:
- the value of the
cycle_resolve_texturefield.
-
texture
Sets the specified value to thetexturefield. -
mip_level
Sets the specified value to themip_levelfield. -
layer_or_depth_plane
Sets the specified value to thelayer_or_depth_planefield. -
clear_color
Copies the specifiedSDL_FColorto theclear_colorfield. -
clear_color
Passes theclear_colorfield to the specifiedConsumer. -
load_op
Sets the specified value to theload_opfield. -
store_op
Sets the specified value to thestore_opfield. -
resolve_texture
Sets the specified value to theresolve_texturefield. -
resolve_mip_level
Sets the specified value to theresolve_mip_levelfield. -
resolve_layer
Sets the specified value to theresolve_layerfield. -
cycle
Sets the specified value to thecyclefield. -
cycle_resolve_texture
Sets the specified value to thecycle_resolve_texturefield.
-