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;
{@link SDL_FColor 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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_GPUColorTargetInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUColorTargetInfo
calloc()
Returns a newSDL_GPUColorTargetInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUColorTargetInfo
calloc
(MemoryStack stack) Returns a newSDL_GPUColorTargetInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.clear_color
(Consumer<SDL_FColor> consumer) Passes theclear_color
field to the specifiedConsumer
.clear_color
(SDL_FColor value) Copies the specifiedSDL_FColor
to theclear_color
field.static SDL_GPUColorTargetInfo
create()
Returns a newSDL_GPUColorTargetInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withBufferUtils
.static SDL_GPUColorTargetInfo
create
(long address) Returns a newSDL_GPUColorTargetInfo
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUColorTargetInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUColorTargetInfo
createSafe
(long address) static @Nullable SDL_GPUColorTargetInfo.Buffer
createSafe
(long address, int capacity) boolean
cycle()
cycle
(boolean value) Sets the specified value to thecycle
field.boolean
cycle_resolve_texture
(boolean value) Sets the specified value to thecycle_resolve_texture
field.int
layer_or_depth_plane
(int value) Sets the specified value to thelayer_or_depth_plane
field.int
load_op()
load_op
(int value) Sets the specified value to theload_op
field.static SDL_GPUColorTargetInfo
malloc()
Returns a newSDL_GPUColorTargetInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUColorTargetInfo
malloc
(MemoryStack stack) Returns a newSDL_GPUColorTargetInfo
instance allocated on the specifiedMemoryStack
.int
mip_level
(int value) Sets the specified value to themip_level
field.static SDL_FColor
nclear_color
(long struct) Unsafe version ofclear_color()
.static void
nclear_color
(long struct, SDL_FColor value) Unsafe version ofclear_color
.static boolean
ncycle
(long struct) Unsafe version ofcycle()
.static void
ncycle
(long struct, boolean value) Unsafe version ofcycle
.static boolean
ncycle_resolve_texture
(long struct) Unsafe version ofcycle_resolve_texture()
.static void
ncycle_resolve_texture
(long struct, boolean value) Unsafe version ofcycle_resolve_texture
.static int
nlayer_or_depth_plane
(long struct) Unsafe version oflayer_or_depth_plane()
.static void
nlayer_or_depth_plane
(long struct, int value) Unsafe version oflayer_or_depth_plane
.static int
nload_op
(long struct) Unsafe version ofload_op()
.static void
nload_op
(long struct, int value) Unsafe version ofload_op
.static int
nmip_level
(long struct) Unsafe version ofmip_level()
.static void
nmip_level
(long struct, int value) Unsafe version ofmip_level
.static byte
npadding1
(long struct) static void
npadding1
(long struct, byte value) static byte
npadding2
(long struct) static void
npadding2
(long struct, byte value) static int
nresolve_layer
(long struct) Unsafe version ofresolve_layer()
.static void
nresolve_layer
(long struct, int value) Unsafe version ofresolve_layer
.static int
nresolve_mip_level
(long struct) Unsafe version ofresolve_mip_level()
.static void
nresolve_mip_level
(long struct, int value) Unsafe version ofresolve_mip_level
.static long
nresolve_texture
(long struct) Unsafe version ofresolve_texture()
.static void
nresolve_texture
(long struct, long value) Unsafe version ofresolve_texture
.static int
nstore_op
(long struct) Unsafe version ofstore_op()
.static void
nstore_op
(long struct, int value) Unsafe version ofstore_op
.static long
ntexture
(long struct) Unsafe version oftexture()
.static void
ntexture
(long struct, long value) Unsafe version oftexture
.int
resolve_layer
(int value) Sets the specified value to theresolve_layer
field.int
resolve_mip_level
(int value) Sets the specified value to theresolve_mip_level
field.long
resolve_texture
(long value) Sets the specified value to theresolve_texture
field.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.int
sizeof()
Returnssizeof(struct)
.int
store_op()
store_op
(int value) Sets the specified value to thestore_op
field.long
texture()
texture
(long value) Sets the specified value to thetexture
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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_GPUColorTargetInfo
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SDL_GPUColorTargetInfo>
-
texture
public long texture()- Returns:
- the value of the
texture
field.
-
mip_level
public int mip_level()- Returns:
- the value of the
mip_level
field.
-
layer_or_depth_plane
public int layer_or_depth_plane()- Returns:
- the value of the
layer_or_depth_plane
field.
-
clear_color
- Returns:
- a
SDL_FColor
view of theclear_color
field.
-
load_op
public int load_op()- Returns:
- the value of the
load_op
field.
-
store_op
public int store_op()- Returns:
- the value of the
store_op
field.
-
resolve_texture
public long resolve_texture()- Returns:
- the value of the
resolve_texture
field.
-
resolve_mip_level
public int resolve_mip_level()- Returns:
- the value of the
resolve_mip_level
field.
-
resolve_layer
public int resolve_layer()- Returns:
- the value of the
resolve_layer
field.
-
cycle
public boolean cycle()- Returns:
- the value of the
cycle
field.
-
cycle_resolve_texture
public boolean cycle_resolve_texture()- Returns:
- the value of the
cycle_resolve_texture
field.
-
texture
Sets the specified value to thetexture
field. -
mip_level
Sets the specified value to themip_level
field. -
layer_or_depth_plane
Sets the specified value to thelayer_or_depth_plane
field. -
clear_color
Copies the specifiedSDL_FColor
to theclear_color
field. -
clear_color
Passes theclear_color
field to the specifiedConsumer
. -
load_op
Sets the specified value to theload_op
field. -
store_op
Sets the specified value to thestore_op
field. -
resolve_texture
Sets the specified value to theresolve_texture
field. -
resolve_mip_level
Sets the specified value to theresolve_mip_level
field. -
resolve_layer
Sets the specified value to theresolve_layer
field. -
cycle
Sets the specified value to thecycle
field. -
cycle_resolve_texture
Sets the specified value to thecycle_resolve_texture
field. -
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_GPUColorTargetInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUColorTargetInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUColorTargetInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUColorTargetInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUColorTargetInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUColorTargetInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUColorTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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
-