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 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 ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
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 long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUStencilOpState
(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUStencilOpState
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUStencilOpState
static SDL_GPUStencilOpState.Ptr
static SDL_GPUStencilOpState
clone
(Arena arena, SDL_GPUStencilOpState src) int
compare_op
(int value) int
depth_fail_op
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
fail_op()
fail_op
(int value) final int
hashCode()
Returns a hash code value for this object.int
pass_op()
pass_op
(int 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$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_GPUStencilOpState
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-