AntiAliasingMode enum Scene graph

Anti-aliasing strategy used when rendering a Scene.

Set on a Scene via Scene.antiAliasingMode. The default is auto, which selects msaa when the GPU backend supports offscreen MSAA and fxaa otherwise, so every backend gets anti-aliasing out of the box. Query support with Scene.isAntiAliasingModeSupported and read the technique that actually runs from Scene.effectiveAntiAliasingMode.

Inheritance
Available extensions

Values

none → const AntiAliasingMode

No anti-aliasing. Geometry edges are rendered at the render target's native resolution.

msaa → const AntiAliasingMode

4x multi-sample anti-aliasing on the scene pass. The highest quality option for geometry edges, and cheap on mobile GPUs. Not supported on every Flutter GPU backend; where it is unavailable, rendering falls back to fxaa (see Scene.effectiveAntiAliasingMode).

fxaa → const AntiAliasingMode

Fast approximate anti-aliasing, a single post-process pass over the tone-mapped image. Supported on every backend. Softens all high-contrast edges, including texture detail, so prefer msaa where it is available.

auto → const AntiAliasingMode

Selects msaa when the backend supports it and fxaa otherwise.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AntiAliasingMode>
A constant List of the values in this enum, in order of their declaration.