FlutterGpuSplatRenderer class

Experimental flutter_gpu/Impeller backend for Gaussian splats.

Implemented types

Constructors

FlutterGpuSplatRenderer()

Properties

camera Camera?
Currently active camera.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
highQualitySH bool
When true, evaluate spherical harmonics per-splat every frame (highest quality). When false, use the cheaper resolve-pass approximation that evaluates SH once per splat with a single global view direction.
getter/setter pairoverride
ndcYSign double
Impeller normalizes vertical conventions across its backends, so the render-to-texture path needs a single sign on every platform.
no setteroverride
onNeedsRender VoidCallback?
Callback invoked when another frame should be scheduled.
getter/setter pairoverride
renderStats RenderStats
Latest frame statistics.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildOutput(BuildContext context, {required Size logicalSize}) Widget
Builds the widget that displays the last rendered frame.
override
disableBackground() → void
Removes the renderer-managed background, if any.
override
dispose() → void
Releases backend resources.
override
enableBackgroundFromAsset(String assetPath) Future<void>
Enables a renderer-managed background from an asset.
override
frame() Future<void>
Renders one frame.
override
initialize({bool debug = true}) Future<void>
Initializes backend resources that are independent of viewport size.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resize(Camera nextCamera) Future<bool>
Resizes the render target and applies nextCamera.
override
setBackgroundRotation(double yawDegrees, double pitchDegrees) → void
Updates renderer-managed background orientation.
override
setSplatData(Uint8List data) Future<void>
Uploads raw processed splat data.
override
setup({required int width, required int height, bool enableProfiling = false}) Future<void>
Creates render targets and shaders for a physical-pixel viewport.
override
toString() String
A string representation of this object.
inherited

Operators

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