WebGpuPipelineSignature class final

Everything WebGPU bakes into a GPURenderPipeline that this contract sets somewhere else.

A value type with == because the map behind it is consulted once per draw. Every field is one the engine genuinely changes inside a single pass: the mesh loop sets winding and cull per node and blend per material, so a scene with opaque and transparent materials and one mirrored prop is four signatures before anything else moves.

Constructors

WebGpuPipelineSignature({required String pipeline, required String vertexLayout, required String topology, required String? stripIndexFormat, required String cullMode, required String frontFace, required String depthCompare, required bool depthWrite, required String? stencil, required List<BlendState?> blends, required List<String> colorFormats, required String? depthFormat, required int sampleCount, Object? vertexModule, Object? fragmentModule})

Properties

blends List<BlendState?>
One blend equation per colour attachment, null where blending is off. Shorter than colorFormats when nothing has set a state for the later attachments, which reads as "off" — the same thing a null entry means.
final
colorFormats List<String>
The colour attachments' formats, in shader output order. Part of a pipeline in WebGPU: the same stage pair drawn into the HDR target and into the eight-bit one is two pipelines.
final
cullMode String
final
depthCompare String
final
depthFormat String?
final
depthWrite bool
final
fragmentModule Object?
final
frontFace String
final
hashCode int
The hash code for this object.
no setteroverride
pipeline String
The stage pair, by the name PipelineHandle carries.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleCount int
final
stencil String?
The stencil test, as webgpuStencilFingerprint renders it, or null where it is off.
final
stripIndexFormat String?
The index width a strip's restart value is read at, or null for a list topology — which is every draw in this engine so far.
final
topology String
final
vertexLayout String
The vertex layout, as webgpuVertexLayoutFingerprint renders it. See the library comment for why leaving this out draws a picture instead of raising anything.
final
vertexModule Object?
The compiled modules the pipeline is built from, compared by identity.
final

Methods

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