Package org.lwjgl.sdl
Class SDL_GPUGraphicsPipelineTargetInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SDL_GPUGraphicsPipelineTargetInfo>
org.lwjgl.sdl.SDL_GPUGraphicsPipelineTargetInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUGraphicsPipelineTargetInfo
extends Struct<SDL_GPUGraphicsPipelineTargetInfo>
implements NativeResource
struct SDL_GPUGraphicsPipelineTargetInfo {
{@link SDL_GPUColorTargetDescription SDL_GPUColorTargetDescription} const * color_target_descriptions;
Uint32 num_color_targets;
SDL_GPUTextureFormat depth_stencil_format;
bool has_depth_stencil_target;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofSDL_GPUGraphicsPipelineTargetInfo
structs.Nested 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUGraphicsPipelineTargetInfo
(ByteBuffer container) Creates aSDL_GPUGraphicsPipelineTargetInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.@Nullable SDL_GPUColorTargetDescription.Buffer
color_target_descriptions
(@Nullable SDL_GPUColorTargetDescription.Buffer value) Sets the address of the specifiedSDL_GPUColorTargetDescription.Buffer
to thecolor_target_descriptions
field.create()
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUGraphicsPipelineTargetInfo
createSafe
(long address) static @Nullable SDL_GPUGraphicsPipelineTargetInfo.Buffer
createSafe
(long address, int capacity) int
depth_stencil_format
(int value) Sets the specified value to thedepth_stencil_format
field.boolean
has_depth_stencil_target
(boolean value) Sets the specified value to thehas_depth_stencil_target
field.malloc()
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated on the specifiedMemoryStack
.static @Nullable SDL_GPUColorTargetDescription.Buffer
ncolor_target_descriptions
(long struct) Unsafe version ofcolor_target_descriptions()
.static void
ncolor_target_descriptions
(long struct, @Nullable SDL_GPUColorTargetDescription.Buffer value) Unsafe version ofcolor_target_descriptions
.static int
ndepth_stencil_format
(long struct) Unsafe version ofdepth_stencil_format()
.static void
ndepth_stencil_format
(long struct, int value) Unsafe version ofdepth_stencil_format
.static boolean
nhas_depth_stencil_target
(long struct) Unsafe version ofhas_depth_stencil_target()
.static void
nhas_depth_stencil_target
(long struct, boolean value) Unsafe version ofhas_depth_stencil_target
.static int
nnum_color_targets
(long struct) Unsafe version ofnum_color_targets()
.static void
nnum_color_targets
(long struct, int value) Sets the specified value to thenum_color_targets
field of the specifiedstruct
.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 byte
npadding3
(long struct) static void
npadding3
(long struct, byte value) int
num_color_targets
(int value) Sets the specified value to thenum_color_targets
field.set
(@Nullable SDL_GPUColorTargetDescription.Buffer color_target_descriptions, int num_color_targets, int depth_stencil_format, boolean has_depth_stencil_target) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
COLOR_TARGET_DESCRIPTIONS
public static final int COLOR_TARGET_DESCRIPTIONSThe struct member offsets. -
NUM_COLOR_TARGETS
public static final int NUM_COLOR_TARGETSThe struct member offsets. -
DEPTH_STENCIL_FORMAT
public static final int DEPTH_STENCIL_FORMATThe struct member offsets. -
HAS_DEPTH_STENCIL_TARGET
public static final int HAS_DEPTH_STENCIL_TARGETThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets. -
PADDING3
public static final int PADDING3The struct member offsets.
-
-
Constructor Details
-
SDL_GPUGraphicsPipelineTargetInfo
Creates aSDL_GPUGraphicsPipelineTargetInfo
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_GPUGraphicsPipelineTargetInfo>
-
color_target_descriptions
- Returns:
- a
SDL_GPUColorTargetDescription.Buffer
view of the struct array pointed to by thecolor_target_descriptions
field.
-
num_color_targets
public int num_color_targets()- Returns:
- the value of the
num_color_targets
field.
-
depth_stencil_format
public int depth_stencil_format()- Returns:
- the value of the
depth_stencil_format
field.
-
has_depth_stencil_target
public boolean has_depth_stencil_target()- Returns:
- the value of the
has_depth_stencil_target
field.
-
color_target_descriptions
public SDL_GPUGraphicsPipelineTargetInfo color_target_descriptions(@Nullable SDL_GPUColorTargetDescription.Buffer value) Sets the address of the specifiedSDL_GPUColorTargetDescription.Buffer
to thecolor_target_descriptions
field. -
num_color_targets
Sets the specified value to thenum_color_targets
field. -
depth_stencil_format
Sets the specified value to thedepth_stencil_format
field. -
has_depth_stencil_target
Sets the specified value to thehas_depth_stencil_target
field. -
set
public SDL_GPUGraphicsPipelineTargetInfo set(@Nullable SDL_GPUColorTargetDescription.Buffer color_target_descriptions, int num_color_targets, int depth_stencil_format, boolean has_depth_stencil_target) 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_GPUGraphicsPipelineTargetInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable SDL_GPUGraphicsPipelineTargetInfo.Buffer createSafe(long address, int capacity) -
malloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncolor_target_descriptions
public static @Nullable SDL_GPUColorTargetDescription.Buffer ncolor_target_descriptions(long struct) Unsafe version ofcolor_target_descriptions()
. -
nnum_color_targets
public static int nnum_color_targets(long struct) Unsafe version ofnum_color_targets()
. -
ndepth_stencil_format
public static int ndepth_stencil_format(long struct) Unsafe version ofdepth_stencil_format()
. -
nhas_depth_stencil_target
public static boolean nhas_depth_stencil_target(long struct) Unsafe version ofhas_depth_stencil_target()
. -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
npadding3
public static byte npadding3(long struct) -
ncolor_target_descriptions
public static void ncolor_target_descriptions(long struct, @Nullable SDL_GPUColorTargetDescription.Buffer value) Unsafe version ofcolor_target_descriptions
. -
nnum_color_targets
public static void nnum_color_targets(long struct, int value) Sets the specified value to thenum_color_targets
field of the specifiedstruct
. -
ndepth_stencil_format
public static void ndepth_stencil_format(long struct, int value) Unsafe version ofdepth_stencil_format
. -
nhas_depth_stencil_target
public static void nhas_depth_stencil_target(long struct, boolean value) Unsafe version ofhas_depth_stencil_target
. -
npadding1
public static void npadding1(long struct, byte value) -
npadding2
public static void npadding2(long struct, byte value) -
npadding3
public static void npadding3(long struct, byte value)
-