PassState class final

A pass's rasteriser state. Unset fields are not emitted.

Constructors

PassState({ScreenRect? viewport, ScreenRect? scissor, PrimitiveType? primitiveType, PolygonMode? polygonMode, CullMode? cullMode, WindingOrder? windingOrder, Object? blend = _unsetBlend, int blendAttachment = 0, bool? depthWrite, CompareFunction? depthCompare, StencilState? stencil, StencilState? stencilBack, int? stencilReference})
const

Properties

blend → BlendState?
What blending to set, when setsBlend. Null with setsBlend means off.
final
blendAttachment → int
final
cullMode → CullMode?
final
depthCompare → CompareFunction?
final
depthWrite → bool?
final
hashCode → int
The hash code for this object.
no setteroverride
polygonMode → PolygonMode?
final
primitiveType → PrimitiveType?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scissor → ScreenRect?
final
setsBlend → bool
Whether blending is mentioned at all. False leaves the pass's alone.
final
stencil → StencilState?
The stencil test for front faces — and for back faces too, unless stencilBack says otherwise. Unset emits nothing, like every field here: a pass that never mentions the stencil keeps whatever it started with, which the contract says is StencilState.disabled.
final
stencilBack → StencilState?
A different test for back faces. Only meaningful beside stencil; the constructor asserts as much.
final
stencilReference → int?
The reference value the stencil test compares against.
final
viewport → ScreenRect?
final
windingOrder → WindingOrder?
final

Methods

copyWith({ScreenRect? viewport, ScreenRect? scissor, PrimitiveType? primitiveType, PolygonMode? polygonMode, CullMode? cullMode, WindingOrder? windingOrder, Object? blend = _unsetBlend, int? blendAttachment, bool? depthWrite, CompareFunction? depthCompare, StencilState? stencil, StencilState? stencilBack, int? stencilReference}) → PassState
This state with some fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override