instance property
GpuBackend
get
instance
The active backend.
Calls backend.GpuBackend.create if no instance was set. Certain backends
require async initialization so you are required to call
GpuBackend.initialize at the start of your main.dart.
Implementation
static GpuBackend get instance {
return _instance ??=
backend.GpuBackend.create() ??
(throw StateError(
'No GpuBackend has been registered. Call '
'`await GpuBackend.initialize()` before constructing a '
'GraphicsDevice.',
));
}