Record Class SDL_GPUStencilOpState
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUStencilOpState
- All Implemented Interfaces:
IPointer,ISDL_GPUStencilOpState
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUStencilOpState(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUStencilOpState
A structure specifying the stencil operation state of a graphics pipeline.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUDepthStencilState
Structure
typedef struct SDL_GPUStencilOpState {
SDL_GPUStencilOp fail_op;
SDL_GPUStencilOp pass_op;
SDL_GPUStencilOp depth_fail_op;
SDL_GPUCompareOp compare_op;
} SDL_GPUStencilOpState;
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.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUStencilOpState(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUStencilOpStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUStencilOpStatestatic SDL_GPUStencilOpState.Ptrstatic SDL_GPUStencilOpStateclone(Arena arena, SDL_GPUStencilOpState src) intcompare_op(int value) intdepth_fail_op(int value) final booleanIndicates whether some other object is "equal to" this one.intfail_op()fail_op(int value) final inthashCode()Returns a hash code value for this object.intpass_op()pass_op(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$fail_op
-
PATH$pass_op
-
PATH$depth_fail_op
-
PATH$compare_op
-
LAYOUT$fail_op
-
LAYOUT$pass_op
-
LAYOUT$depth_fail_op
-
LAYOUT$compare_op
-
SIZE$fail_op
public static final long SIZE$fail_op -
SIZE$pass_op
public static final long SIZE$pass_op -
SIZE$depth_fail_op
public static final long SIZE$depth_fail_op -
SIZE$compare_op
public static final long SIZE$compare_op -
OFFSET$fail_op
public static final long OFFSET$fail_op -
OFFSET$pass_op
public static final long OFFSET$pass_op -
OFFSET$depth_fail_op
public static final long OFFSET$depth_fail_op -
OFFSET$compare_op
public static final long OFFSET$compare_op
-
-
Constructor Details
-
SDL_GPUStencilOpState
Creates an instance of aSDL_GPUStencilOpStaterecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
fail_op
-
fail_op
-
pass_op
-
pass_op
-
depth_fail_op
-
depth_fail_op
-
compare_op
-
compare_op
-
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.
-