RDPipelineRasterizationState
Pipeline rasterization state (used by RenderingDevice
).
class RDPipelineRasterizationState
This object is used by RenderingDevice
.
Superclasses
class RefCounted
Base class for reference-counted objects.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var cullMode: RenderingDevice.PolygonCullMode
The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
var depthBiasClamp: Double
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.
var depthBiasConstantFactor: Double
A constant offset added to each depth value. Applied after
depthBiasSlopeFactor
.var depthBiasEnabled: Bool
If
true
, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values ofdepthBiasSlopeFactor
anddepthBiasConstantFactor
.var depthBiasSlopeFactor: Double
A constant scale applied to the slope of each polygons’ depth. Applied before
depthBiasConstantFactor
.var discardPrimitives: Bool
If
true
, primitives are discarded immediately before the rasterization stage.var enableDepthClamp: Bool
If
true
, clamps depth values according to the minimum and maximum depth of the associated viewport.var frontFace: RenderingDevice.PolygonFrontFace
The winding order to use to determine which face of a triangle is considered its front face.
var lineWidth: Double
The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
var patchControlPoints: UInt32
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.
var wireframe: Bool
If
true
, performs wireframe rendering for triangles instead of flat or textured rendering.