Skip to content

RDPipelineRasterizationState

Inherits: RefCounted < Object

Pipeline rasterization state (used by RenderingDevice).

This object is used by RenderingDevice.

Type Name Default
RenderingDevice.PolygonCullMode cull_mode 0
float depth_bias_clamp 0.0
float depth_bias_constant_factor 0.0
bool depth_bias_enabled false
float depth_bias_slope_factor 0.0
bool discard_primitives false
bool enable_depth_clamp false
RenderingDevice.PolygonFrontFace front_face 0
float line_width 1.0
int patch_control_points 1
bool wireframe false

cull_mode

RenderingDevice.PolygonCullMode cull_mode = 0

The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.

depth_bias_clamp

float depth_bias_clamp = 0.0

A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.

depth_bias_constant_factor

float depth_bias_constant_factor = 0.0

A constant offset added to each depth value. Applied after depth_bias_slope_factor.

depth_bias_enabled

bool depth_bias_enabled = false

If true, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of depth_bias_slope_factor and depth_bias_constant_factor.

depth_bias_slope_factor

float depth_bias_slope_factor = 0.0

A constant scale applied to the slope of each polygon’s depth. Applied before depth_bias_constant_factor.

discard_primitives

bool discard_primitives = false

If true, primitives are discarded immediately before the rasterization stage.

enable_depth_clamp

bool enable_depth_clamp = false

If true, clamps depth values according to the minimum and maximum depth of the associated viewport.

front_face

RenderingDevice.PolygonFrontFace front_face = 0

The winding order to use to determine which face of a triangle is considered its front face.

line_width

float line_width = 1.0

The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.

patch_control_points

int patch_control_points = 1

The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.

wireframe

bool wireframe = false

If true, performs wireframe rendering for triangles instead of flat or textured rendering.