FakePass constructor
FakePass(
- RenderPassDescriptor descriptor, {
- Map<
String, StageBindings> ? stageBindings, - List<
String> ? violations, - DeviceFeatures? features,
- bool links(
- PipelineHandle pipeline
Creates a pass opened with descriptor.
stageBindings declares what each stage has, so a bind to a slot it lacks
and a slot a draw left unbound are reported in violations. features
gates the 1.0-surface calls, none by default. links answers whether a
pipeline would link; null takes every one as linked.
Implementation
FakePass(
this.descriptor, {
this.stageBindings,
List<String>? violations,
DeviceFeatures? features,
bool Function(PipelineHandle pipeline)? links,
}) : violations = violations ?? <String>[],
features = features ?? DeviceFeatures.none,
bundleDescriptor = null,
// A named parameter may not be private.
// ignore: prefer_initializing_formals
_links = links;