RDPipelineRasterizationState
继承: RefCounted
< Object
Pipeline rasterization state (used by RenderingDevice
).
描述
This object is used by RenderingDevice
.
属性
属性说明
PolygonCullMode cull_mode = 0
void
set_cull_mode ( value: PolygonCullMode )- PolygonCullMode get_cull_mode ( )
The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
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.
float
depth_bias_constant_factor = 0.0
A constant offset added to each depth value. Applied after depth_bias_slope_factor
.
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
.
float
depth_bias_slope_factor = 0.0
A constant scale applied to the slope of each polygons' depth. Applied before depth_bias_constant_factor
.
bool
discard_primitives = false
If true
, primitives are discarded immediately before the rasterization stage.
bool
enable_depth_clamp = false
If true
, clamps depth values according to the minimum and maximum depth of the associated viewport.
PolygonFrontFace front_face = 0
void
set_front_face ( value: PolygonFrontFace )- PolygonFrontFace get_front_face ( )
The winding order to use to determine which face of a triangle is considered its front face.
float
line_width = 1.0
The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
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.
bool
wireframe = false
If true
, performs wireframe rendering for triangles instead of flat or textured rendering.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。