Package org.lwjgl.sdl
Class SDL_GPUColorTargetInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SDL_GPUColorTargetInfo
extends Struct<SDL_GPUColorTargetInfo>
implements NativeResource
struct SDL_GPUColorTargetInfo {
SDL_GPUTexture * texture;
Uint32 mip_level;
Uint32 layer_or_depth_plane;
SDL_FColor clear_color;
SDL_GPULoadOp load_op;
SDL_GPUStoreOp store_op;
SDL_GPUTexture * resolve_texture;
Uint32 resolve_mip_level;
Uint32 resolve_layer;
bool cycle;
bool cycle_resolve_texture;
Uint8 padding1;
Uint8 padding2;
}-
Nested Class Summary
Nested ClassesNested 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUColorTargetInfo(ByteBuffer container) Creates aSDL_GPUColorTargetInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUColorTargetInfocalloc()Returns a newSDL_GPUColorTargetInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUColorTargetInfocalloc(MemoryStack stack) Returns a newSDL_GPUColorTargetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.clear_color(Consumer<SDL_FColor> consumer) Passes theclear_colorfield to the specifiedConsumer.clear_color(SDL_FColor value) Copies the specifiedSDL_FColorto theclear_colorfield.static SDL_GPUColorTargetInfocreate()Returns a newSDL_GPUColorTargetInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withBufferUtils.static SDL_GPUColorTargetInfocreate(long address) Returns a newSDL_GPUColorTargetInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUColorTargetInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUColorTargetInfocreateSafe(long address) static @Nullable SDL_GPUColorTargetInfo.BuffercreateSafe(long address, int capacity) 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.static SDL_GPUColorTargetInfomalloc()Returns a newSDL_GPUColorTargetInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUColorTargetInfomalloc(MemoryStack stack) Returns a newSDL_GPUColorTargetInfoinstance allocated on the specifiedMemoryStack.intmip_level(int value) Sets the specified value to themip_levelfield.static SDL_FColornclear_color(long struct) Unsafe version ofclear_color().static voidnclear_color(long struct, SDL_FColor value) Unsafe version ofclear_color.static booleanncycle(long struct) Unsafe version ofcycle().static voidncycle(long struct, boolean value) Unsafe version ofcycle.static booleanncycle_resolve_texture(long struct) Unsafe version ofcycle_resolve_texture().static voidncycle_resolve_texture(long struct, boolean value) Unsafe version ofcycle_resolve_texture.static intnlayer_or_depth_plane(long struct) Unsafe version oflayer_or_depth_plane().static voidnlayer_or_depth_plane(long struct, int value) Unsafe version oflayer_or_depth_plane.static intnload_op(long struct) Unsafe version ofload_op().static voidnload_op(long struct, int value) Unsafe version ofload_op.static intnmip_level(long struct) Unsafe version ofmip_level().static voidnmip_level(long struct, int value) Unsafe version ofmip_level.static bytenpadding1(long struct) static voidnpadding1(long struct, byte value) static bytenpadding2(long struct) static voidnpadding2(long struct, byte value) static intnresolve_layer(long struct) Unsafe version ofresolve_layer().static voidnresolve_layer(long struct, int value) Unsafe version ofresolve_layer.static intnresolve_mip_level(long struct) Unsafe version ofresolve_mip_level().static voidnresolve_mip_level(long struct, int value) Unsafe version ofresolve_mip_level.static longnresolve_texture(long struct) Unsafe version ofresolve_texture().static voidnresolve_texture(long struct, long value) Unsafe version ofresolve_texture.static intnstore_op(long struct) Unsafe version ofstore_op().static voidnstore_op(long struct, int value) Unsafe version ofstore_op.static longntexture(long struct) Unsafe version oftexture().static voidntexture(long struct, long value) Unsafe version oftexture.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.set(long texture, int mip_level, int layer_or_depth_plane, SDL_FColor clear_color, int load_op, int store_op, long resolve_texture, int resolve_mip_level, int resolve_layer, boolean cycle, boolean cycle_resolve_texture) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstore_op()store_op(int value) Sets the specified value to thestore_opfield.longtexture()texture(long value) Sets the specified value to thetexturefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
TEXTURE
public static final int TEXTUREThe struct member offsets. -
MIP_LEVEL
public static final int MIP_LEVELThe struct member offsets. -
LAYER_OR_DEPTH_PLANE
public static final int LAYER_OR_DEPTH_PLANEThe struct member offsets. -
CLEAR_COLOR
public static final int CLEAR_COLORThe struct member offsets. -
LOAD_OP
public static final int LOAD_OPThe struct member offsets. -
STORE_OP
public static final int STORE_OPThe struct member offsets. -
RESOLVE_TEXTURE
public static final int RESOLVE_TEXTUREThe struct member offsets. -
RESOLVE_MIP_LEVEL
public static final int RESOLVE_MIP_LEVELThe struct member offsets. -
RESOLVE_LAYER
public static final int RESOLVE_LAYERThe struct member offsets. -
CYCLE
public static final int CYCLEThe struct member offsets. -
CYCLE_RESOLVE_TEXTURE
public static final int CYCLE_RESOLVE_TEXTUREThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets.
-
-
Constructor Details
-
SDL_GPUColorTargetInfo
Creates aSDL_GPUColorTargetInfoinstance 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_GPUColorTargetInfo>
-
texture
public long texture()- Returns:
- the value of the
texturefield.
-
mip_level
public int mip_level()- Returns:
- the value of the
mip_levelfield.
-
layer_or_depth_plane
public int layer_or_depth_plane()- Returns:
- the value of the
layer_or_depth_planefield.
-
clear_color
- Returns:
- a
SDL_FColorview of theclear_colorfield.
-
load_op
public int load_op()- Returns:
- the value of the
load_opfield.
-
store_op
public int store_op()- Returns:
- the value of the
store_opfield.
-
resolve_texture
public long resolve_texture()- Returns:
- the value of the
resolve_texturefield.
-
resolve_mip_level
public int resolve_mip_level()- Returns:
- the value of the
resolve_mip_levelfield.
-
resolve_layer
public int resolve_layer()- Returns:
- the value of the
resolve_layerfield.
-
cycle
public boolean cycle()- Returns:
- the value of the
cyclefield.
-
cycle_resolve_texture
public boolean 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. -
set
public SDL_GPUColorTargetInfo set(long texture, int mip_level, int layer_or_depth_plane, SDL_FColor clear_color, int load_op, int store_op, long resolve_texture, int resolve_mip_level, int resolve_layer, boolean cycle, boolean cycle_resolve_texture) 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_GPUColorTargetInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUColorTargetInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUColorTargetInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUColorTargetInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUColorTargetInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUColorTargetInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntexture
public static long ntexture(long struct) Unsafe version oftexture(). -
nmip_level
public static int nmip_level(long struct) Unsafe version ofmip_level(). -
nlayer_or_depth_plane
public static int nlayer_or_depth_plane(long struct) Unsafe version oflayer_or_depth_plane(). -
nclear_color
Unsafe version ofclear_color(). -
nload_op
public static int nload_op(long struct) Unsafe version ofload_op(). -
nstore_op
public static int nstore_op(long struct) Unsafe version ofstore_op(). -
nresolve_texture
public static long nresolve_texture(long struct) Unsafe version ofresolve_texture(). -
nresolve_mip_level
public static int nresolve_mip_level(long struct) Unsafe version ofresolve_mip_level(). -
nresolve_layer
public static int nresolve_layer(long struct) Unsafe version ofresolve_layer(). -
ncycle
public static boolean ncycle(long struct) Unsafe version ofcycle(). -
ncycle_resolve_texture
public static boolean ncycle_resolve_texture(long struct) Unsafe version ofcycle_resolve_texture(). -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
ntexture
public static void ntexture(long struct, long value) Unsafe version oftexture. -
nmip_level
public static void nmip_level(long struct, int value) Unsafe version ofmip_level. -
nlayer_or_depth_plane
public static void nlayer_or_depth_plane(long struct, int value) Unsafe version oflayer_or_depth_plane. -
nclear_color
Unsafe version ofclear_color. -
nload_op
public static void nload_op(long struct, int value) Unsafe version ofload_op. -
nstore_op
public static void nstore_op(long struct, int value) Unsafe version ofstore_op. -
nresolve_texture
public static void nresolve_texture(long struct, long value) Unsafe version ofresolve_texture. -
nresolve_mip_level
public static void nresolve_mip_level(long struct, int value) Unsafe version ofresolve_mip_level. -
nresolve_layer
public static void nresolve_layer(long struct, int value) Unsafe version ofresolve_layer. -
ncycle
public static void ncycle(long struct, boolean value) Unsafe version ofcycle. -
ncycle_resolve_texture
public static void ncycle_resolve_texture(long struct, boolean value) Unsafe version ofcycle_resolve_texture. -
npadding1
public static void npadding1(long struct, byte value) -
npadding2
public static void npadding2(long struct, byte value) -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-