TSdlGpuRasterizerState
A record specifying the parameters of the graphics pipeline rasterizer state.
Note that TSdlGpuFillMode.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 DepthClipEnabled 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.
Definition
Unit: Neslib.Sdl3.Gpu
See Also
Properties
Name | Description |
---|---|
CullMode | The facing direction in which triangles will be culled. |
DepthBiasClamp | The maximum depth bias of a fragment. |
DepthBiasConstantFactor | A scalar factor controlling the depth value added to each fragment. |
DepthBiasEnabled | True to bias fragment depth values. |
DepthBiasSlopeFactor | A scalar factor applied to a fragment's slope in depth calculations. |
DepthClipEnabled | True to enable depth clip, False to enable depth clamp. |
FillMode | Whether polygons will be filled in or drawn as lines. |
FrontFace | The vertex winding that will cause a triangle to be determined as front-facing. |
Property Descriptions
CullMode
The facing direction in which triangles will be culled.
property CullMode: TSdlGpuCullMode read GetCullMode write SetCullMode
Type: TSdlGpuCullMode
DepthBiasClamp
The maximum depth bias of a fragment.
property DepthBiasClamp: Single read FHandle.depth_bias_clamp write FHandle.depth_bias_clamp
Type: Single
DepthBiasConstantFactor
A scalar factor controlling the depth value added to each fragment.
property DepthBiasConstantFactor: Single read FHandle.depth_bias_constant_factor write FHandle.depth_bias_constant_factor
Type: Single
DepthBiasEnabled
True to bias fragment depth values.
property DepthBiasEnabled: Boolean read FHandle.enable_depth_bias write FHandle.enable_depth_bias
Type: Boolean
DepthBiasSlopeFactor
A scalar factor applied to a fragment's slope in depth calculations.
property DepthBiasSlopeFactor: Single read FHandle.depth_bias_slope_factor write FHandle.depth_bias_slope_factor
Type: Single
DepthClipEnabled
True to enable depth clip, False to enable depth clamp.
property DepthClipEnabled: Boolean read FHandle.enable_depth_clip write FHandle.enable_depth_clip
Type: Boolean
FillMode
Whether polygons will be filled in or drawn as lines.
property FillMode: TSdlGpuFillMode read GetFillMode write SetFillMode
Type: TSdlGpuFillMode
FrontFace
The vertex winding that will cause a triangle to be determined as front-facing.
property FrontFace: TSdlGpuFrontFace read GetFrontFace write SetFrontFace
Type: TSdlGpuFrontFace