Record Class SDL_GPUColorTargetBlendState
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUColorTargetBlendState
- All Implemented Interfaces:
IPointer,ISDL_GPUColorTargetBlendState
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUColorTargetBlendState(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUColorTargetBlendState
A structure specifying the blend state of a color target.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUColorTargetDescription
Structure
typedef struct SDL_GPUColorTargetBlendState {
SDL_GPUBlendFactor src_color_blendfactor;
SDL_GPUBlendFactor dst_color_blendfactor;
SDL_GPUBlendOp color_blend_op;
SDL_GPUBlendFactor src_alpha_blendfactor;
SDL_GPUBlendFactor dst_alpha_blendfactor;
SDL_GPUBlendOp alpha_blend_op;
SDL_GPUColorComponentFlags color_write_mask;
bool enable_blend;
bool enable_color_write_mask;
Uint8 padding1;
Uint8 padding2;
} SDL_GPUColorTargetBlendState;
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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfBooleanstatic final ValueLayout.OfBooleanstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUColorTargetBlendState(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUColorTargetBlendStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUColorTargetBlendStateintalpha_blend_op(int value) static SDL_GPUColorTargetBlendStateclone(Arena arena, SDL_GPUColorTargetBlendState src) intcolor_blend_op(int value) bytecolor_write_mask(byte value) intdst_alpha_blendfactor(int value) intdst_color_blendfactor(int value) booleanenable_blend(boolean value) booleanenable_color_write_mask(boolean value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.bytepadding1()padding1(byte value) bytepadding2()padding2(byte value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsrc_alpha_blendfactor(int value) intsrc_color_blendfactor(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$src_color_blendfactor
-
PATH$dst_color_blendfactor
-
PATH$color_blend_op
-
PATH$src_alpha_blendfactor
-
PATH$dst_alpha_blendfactor
-
PATH$alpha_blend_op
-
PATH$color_write_mask
-
PATH$enable_blend
-
PATH$enable_color_write_mask
-
PATH$padding1
-
PATH$padding2
-
LAYOUT$src_color_blendfactor
-
LAYOUT$dst_color_blendfactor
-
LAYOUT$color_blend_op
-
LAYOUT$src_alpha_blendfactor
-
LAYOUT$dst_alpha_blendfactor
-
LAYOUT$alpha_blend_op
-
LAYOUT$color_write_mask
-
LAYOUT$enable_blend
-
LAYOUT$enable_color_write_mask
-
LAYOUT$padding1
-
LAYOUT$padding2
-
SIZE$src_color_blendfactor
public static final long SIZE$src_color_blendfactor -
SIZE$dst_color_blendfactor
public static final long SIZE$dst_color_blendfactor -
SIZE$color_blend_op
public static final long SIZE$color_blend_op -
SIZE$src_alpha_blendfactor
public static final long SIZE$src_alpha_blendfactor -
SIZE$dst_alpha_blendfactor
public static final long SIZE$dst_alpha_blendfactor -
SIZE$alpha_blend_op
public static final long SIZE$alpha_blend_op -
SIZE$color_write_mask
public static final long SIZE$color_write_mask -
SIZE$enable_blend
public static final long SIZE$enable_blend -
SIZE$enable_color_write_mask
public static final long SIZE$enable_color_write_mask -
SIZE$padding1
public static final long SIZE$padding1 -
SIZE$padding2
public static final long SIZE$padding2 -
OFFSET$src_color_blendfactor
public static final long OFFSET$src_color_blendfactor -
OFFSET$dst_color_blendfactor
public static final long OFFSET$dst_color_blendfactor -
OFFSET$color_blend_op
public static final long OFFSET$color_blend_op -
OFFSET$src_alpha_blendfactor
public static final long OFFSET$src_alpha_blendfactor -
OFFSET$dst_alpha_blendfactor
public static final long OFFSET$dst_alpha_blendfactor -
OFFSET$alpha_blend_op
public static final long OFFSET$alpha_blend_op -
OFFSET$color_write_mask
public static final long OFFSET$color_write_mask -
OFFSET$enable_blend
public static final long OFFSET$enable_blend -
OFFSET$enable_color_write_mask
public static final long OFFSET$enable_color_write_mask -
OFFSET$padding1
public static final long OFFSET$padding1 -
OFFSET$padding2
public static final long OFFSET$padding2
-
-
Constructor Details
-
SDL_GPUColorTargetBlendState
Creates an instance of aSDL_GPUColorTargetBlendStaterecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
src_color_blendfactor
-
src_color_blendfactor
public SDL_GPUColorTargetBlendState src_color_blendfactor(@EnumType(SDL_GPUBlendFactor.class) int value) -
dst_color_blendfactor
-
dst_color_blendfactor
public SDL_GPUColorTargetBlendState dst_color_blendfactor(@EnumType(SDL_GPUBlendFactor.class) int value) -
color_blend_op
-
color_blend_op
-
src_alpha_blendfactor
-
src_alpha_blendfactor
public SDL_GPUColorTargetBlendState src_alpha_blendfactor(@EnumType(SDL_GPUBlendFactor.class) int value) -
dst_alpha_blendfactor
-
dst_alpha_blendfactor
public SDL_GPUColorTargetBlendState dst_alpha_blendfactor(@EnumType(SDL_GPUBlendFactor.class) int value) -
alpha_blend_op
-
alpha_blend_op
-
color_write_mask
-
color_write_mask
public SDL_GPUColorTargetBlendState color_write_mask(@EnumType(SDL_GPUColorComponentFlags.class) byte value) -
enable_blend
-
enable_blend
-
enable_color_write_mask
-
enable_color_write_mask
-
padding1
-
padding1
-
padding2
-
padding2
-
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 thesegmentrecord component.
-