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 {
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 classAn array ofSDL_GPUGraphicsPipelineTargetInfostructs.Nested 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 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_GPUGraphicsPipelineTargetInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.@Nullable SDL_GPUColorTargetDescription.Buffercolor_target_descriptions(@Nullable SDL_GPUColorTargetDescription.Buffer value) Sets the address of the specifiedSDL_GPUColorTargetDescription.Bufferto thecolor_target_descriptionsfield.create()Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withBufferUtils.create(long address) Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUGraphicsPipelineTargetInfocreateSafe(long address) static @Nullable SDL_GPUGraphicsPipelineTargetInfo.BuffercreateSafe(long address, int capacity) intdepth_stencil_format(int value) Sets the specified value to thedepth_stencil_formatfield.booleanhas_depth_stencil_target(boolean value) Sets the specified value to thehas_depth_stencil_targetfield.malloc()Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated on the specifiedMemoryStack.static @Nullable SDL_GPUColorTargetDescription.Bufferncolor_target_descriptions(long struct) Unsafe version ofcolor_target_descriptions().static voidncolor_target_descriptions(long struct, @Nullable SDL_GPUColorTargetDescription.Buffer value) Unsafe version ofcolor_target_descriptions.static intndepth_stencil_format(long struct) Unsafe version ofdepth_stencil_format().static voidndepth_stencil_format(long struct, int value) Unsafe version ofdepth_stencil_format.static booleannhas_depth_stencil_target(long struct) Unsafe version ofhas_depth_stencil_target().static voidnhas_depth_stencil_target(long struct, boolean value) Unsafe version ofhas_depth_stencil_target.static intnnum_color_targets(long struct) Unsafe version ofnum_color_targets().static voidnnum_color_targets(long struct, int value) Sets the specified value to thenum_color_targetsfield of the specifiedstruct.static bytenpadding1(long struct) static voidnpadding1(long struct, byte value) static bytenpadding2(long struct) static voidnpadding2(long struct, byte value) static bytenpadding3(long struct) static voidnpadding3(long struct, byte value) intnum_color_targets(int value) Sets the specified value to thenum_color_targetsfield.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.intsizeof()Returnssizeof(struct).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. -
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_GPUGraphicsPipelineTargetInfoinstance 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_GPUGraphicsPipelineTargetInfo>
-
color_target_descriptions
- Returns:
- a
SDL_GPUColorTargetDescription.Bufferview of the struct array pointed to by thecolor_target_descriptionsfield.
-
num_color_targets
public int num_color_targets()- Returns:
- the value of the
num_color_targetsfield.
-
depth_stencil_format
public int depth_stencil_format()- Returns:
- the value of the
depth_stencil_formatfield.
-
has_depth_stencil_target
public boolean has_depth_stencil_target()- Returns:
- the value of the
has_depth_stencil_targetfield.
-
color_target_descriptions
public SDL_GPUGraphicsPipelineTargetInfo color_target_descriptions(@Nullable SDL_GPUColorTargetDescription.Buffer value) Sets the address of the specifiedSDL_GPUColorTargetDescription.Bufferto thecolor_target_descriptionsfield. -
num_color_targets
Sets the specified value to thenum_color_targetsfield. -
depth_stencil_format
Sets the specified value to thedepth_stencil_formatfield. -
has_depth_stencil_target
Sets the specified value to thehas_depth_stencil_targetfield. -
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_GPUGraphicsPipelineTargetInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance 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_GPUGraphicsPipelineTargetInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUGraphicsPipelineTargetInfo.Bufferinstance allocated on the specifiedMemoryStackand 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_targetsfield 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)
-