Record Class SDL_GPUGraphicsPipelineTargetInfo
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUGraphicsPipelineTargetInfo
- All Implemented Interfaces:
IPointer
,ISDL_GPUGraphicsPipelineTargetInfo
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUGraphicsPipelineTargetInfo(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUGraphicsPipelineTargetInfo
A structure specifying the descriptions of render targets used in a graphics pipeline.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUGraphicsPipelineCreateInfo
SDL_GPUColorTargetDescription
SDL_GPUTextureFormat
Structure
typedef 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
;
} SDL_GPUGraphicsPipelineTargetInfo;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfBoolean
static final ValueLayout.OfInt
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final ValueLayout.OfByte
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUGraphicsPipelineTargetInfo
(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUGraphicsPipelineTargetInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, SDL_GPUGraphicsPipelineTargetInfo src) @Nullable SDL_GPUColorTargetDescription
color_target_descriptions
(int assumedCount) color_target_descriptions
(@Nullable ISDL_GPUColorTargetDescription value) void
int
depth_stencil_format
(int value) final boolean
Indicates whether some other object is "equal to" this one.boolean
has_depth_stencil_target
(boolean value) final int
hashCode()
Returns a hash code value for this object.int
num_color_targets
(int value) byte
padding1()
padding1
(byte value) byte
padding2()
padding2
(byte value) byte
padding3()
padding3
(byte value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$color_target_descriptions
-
PATH$num_color_targets
-
PATH$depth_stencil_format
-
PATH$has_depth_stencil_target
-
PATH$padding1
-
PATH$padding2
-
PATH$padding3
-
LAYOUT$color_target_descriptions
-
LAYOUT$num_color_targets
-
LAYOUT$depth_stencil_format
-
LAYOUT$has_depth_stencil_target
-
LAYOUT$padding1
-
LAYOUT$padding2
-
LAYOUT$padding3
-
SIZE$color_target_descriptions
public static final long SIZE$color_target_descriptions -
SIZE$num_color_targets
public static final long SIZE$num_color_targets -
SIZE$depth_stencil_format
public static final long SIZE$depth_stencil_format -
SIZE$has_depth_stencil_target
public static final long SIZE$has_depth_stencil_target -
SIZE$padding1
public static final long SIZE$padding1 -
SIZE$padding2
public static final long SIZE$padding2 -
SIZE$padding3
public static final long SIZE$padding3 -
OFFSET$color_target_descriptions
public static final long OFFSET$color_target_descriptions -
OFFSET$num_color_targets
public static final long OFFSET$num_color_targets -
OFFSET$depth_stencil_format
public static final long OFFSET$depth_stencil_format -
OFFSET$has_depth_stencil_target
public static final long OFFSET$has_depth_stencil_target -
OFFSET$padding1
public static final long OFFSET$padding1 -
OFFSET$padding2
public static final long OFFSET$padding2 -
OFFSET$padding3
public static final long OFFSET$padding3
-
-
Constructor Details
-
SDL_GPUGraphicsPipelineTargetInfo
Creates an instance of aSDL_GPUGraphicsPipelineTargetInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static SDL_GPUGraphicsPipelineTargetInfo clone(Arena arena, SDL_GPUGraphicsPipelineTargetInfo src) -
color_target_descriptions
public SDL_GPUGraphicsPipelineTargetInfo color_target_descriptions(@Nullable @Nullable ISDL_GPUColorTargetDescription value) -
color_target_descriptions
@Unsafe @Nullable public SDL_GPUColorTargetDescription.Ptr color_target_descriptions(int assumedCount) -
color_target_descriptions
-
color_target_descriptionsRaw
@Pointer(target=SDL_GPUColorTargetDescription.class) public MemorySegment color_target_descriptionsRaw() -
color_target_descriptionsRaw
public void color_target_descriptionsRaw(@Pointer(target=SDL_GPUColorTargetDescription.class) MemorySegment value) -
num_color_targets
-
num_color_targets
public SDL_GPUGraphicsPipelineTargetInfo num_color_targets(@NativeType("Uint32") @Unsigned int value) -
depth_stencil_format
-
depth_stencil_format
public SDL_GPUGraphicsPipelineTargetInfo depth_stencil_format(@EnumType(SDL_GPUTextureFormat.class) int value) -
has_depth_stencil_target
-
has_depth_stencil_target
public SDL_GPUGraphicsPipelineTargetInfo has_depth_stencil_target(@NativeType("boolean") boolean value) -
padding1
-
padding1
-
padding2
-
padding2
-
padding3
-
padding3
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-