Record Class SDL_GPURasterizerState
- All Implemented Interfaces:
IPointer,ISDL_GPURasterizerState
A structure specifying the parameters of the graphics pipeline rasterizer state.
Note that SDL_GPU_FILLMODE_LINE is not supported on many Android devices. For those devices, the fill mode will automatically fall back to FILL.
Also note that the D3D12 driver will enable depth clamping even if enable_depth_clip is true. If you need this clamp+clip behavior, consider enabling depth clip and then manually clamping depth in your fragment shaders on Metal and Vulkan.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUGraphicsPipelineCreateInfo
Structure
typedef struct SDL_GPURasterizerState {
SDL_GPUFillMode fill_mode;
SDL_GPUCullMode cull_mode;
SDL_GPUFrontFace front_face;
float depth_bias_constant_factor;
float depth_bias_clamp;
float depth_bias_slope_factor;
bool enable_depth_bias;
bool enable_depth_clip;
Uint8 padding1;
Uint8 padding2;
} SDL_GPURasterizerState;
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.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfBooleanstatic final ValueLayout.OfBooleanstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfBytestatic final ValueLayout.OfBytestatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPURasterizerState(@NotNull MemorySegment segment) Creates an instance of aSDL_GPURasterizerStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPURasterizerStatestatic SDL_GPURasterizerState.Ptrstatic SDL_GPURasterizerStateclone(Arena arena, SDL_GPURasterizerState src) intcull_mode(int value) floatdepth_bias_clamp(float value) floatdepth_bias_constant_factor(float value) floatdepth_bias_slope_factor(float value) booleanenable_depth_bias(boolean value) booleanenable_depth_clip(boolean value) final booleanIndicates whether some other object is "equal to" this one.intfill_mode(int value) intfront_face(int value) 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$fill_mode
-
PATH$cull_mode
-
PATH$front_face
-
PATH$depth_bias_constant_factor
-
PATH$depth_bias_clamp
-
PATH$depth_bias_slope_factor
-
PATH$enable_depth_bias
-
PATH$enable_depth_clip
-
PATH$padding1
-
PATH$padding2
-
LAYOUT$fill_mode
-
LAYOUT$cull_mode
-
LAYOUT$front_face
-
LAYOUT$depth_bias_constant_factor
-
LAYOUT$depth_bias_clamp
-
LAYOUT$depth_bias_slope_factor
-
LAYOUT$enable_depth_bias
-
LAYOUT$enable_depth_clip
-
LAYOUT$padding1
-
LAYOUT$padding2
-
SIZE$fill_mode
public static final long SIZE$fill_mode -
SIZE$cull_mode
public static final long SIZE$cull_mode -
SIZE$front_face
public static final long SIZE$front_face -
SIZE$depth_bias_constant_factor
public static final long SIZE$depth_bias_constant_factor -
SIZE$depth_bias_clamp
public static final long SIZE$depth_bias_clamp -
SIZE$depth_bias_slope_factor
public static final long SIZE$depth_bias_slope_factor -
SIZE$enable_depth_bias
public static final long SIZE$enable_depth_bias -
SIZE$enable_depth_clip
public static final long SIZE$enable_depth_clip -
SIZE$padding1
public static final long SIZE$padding1 -
SIZE$padding2
public static final long SIZE$padding2 -
OFFSET$fill_mode
public static final long OFFSET$fill_mode -
OFFSET$cull_mode
public static final long OFFSET$cull_mode -
OFFSET$front_face
public static final long OFFSET$front_face -
OFFSET$depth_bias_constant_factor
public static final long OFFSET$depth_bias_constant_factor -
OFFSET$depth_bias_clamp
public static final long OFFSET$depth_bias_clamp -
OFFSET$depth_bias_slope_factor
public static final long OFFSET$depth_bias_slope_factor -
OFFSET$enable_depth_bias
public static final long OFFSET$enable_depth_bias -
OFFSET$enable_depth_clip
public static final long OFFSET$enable_depth_clip -
OFFSET$padding1
public static final long OFFSET$padding1 -
OFFSET$padding2
public static final long OFFSET$padding2
-
-
Constructor Details
-
SDL_GPURasterizerState
Creates an instance of aSDL_GPURasterizerStaterecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
fill_mode
-
fill_mode
-
cull_mode
-
cull_mode
-
front_face
-
front_face
-
depth_bias_constant_factor
public float depth_bias_constant_factor() -
depth_bias_constant_factor
-
depth_bias_clamp
public float depth_bias_clamp() -
depth_bias_clamp
-
depth_bias_slope_factor
public float depth_bias_slope_factor() -
depth_bias_slope_factor
-
enable_depth_bias
-
enable_depth_bias
-
enable_depth_clip
-
enable_depth_clip
-
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.
-