WasmScriptingVM class abstract
Constructors
Properties
- consoleHasData → ChangeNotifier
-
The console fills from module prints and host call failures.
final
- executionTier → WasmExecutionTier
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setter
- lastError → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
displayScale(
double scale) → void - Device pixels per layout point, re-announced to every layout script.
-
dispose(
) → void -
hasShaderRstb(
String name) → bool - Whether registerShaderRstb gave the VM a shader of that name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readConsole(
List< ConsoleEntry> entries) → bool -
registerShaderRstb(
String name, Uint8List bytes) → void - Hands the VM a shader the workspace compiled for this bake, since the file it booted onto carries no compiled WGSL of its own.
-
setExecutionTimeout(
int timeoutMs) → void -
setPlaying(
bool playing) → void -
toString(
) → String -
A string representation of this object.
inherited
-
writeConsole(
ConsoleEntry entry) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
boot(
Uint8List module, Factory riveFactory) → WasmVMBoot -
Boots
moduleon the wasm engine. The module's top level, including every riveRegister call, runs here; its prints land in the console. -
requireBounds(
bool on) → void -
While
on, modules start only under a bound the host can enforce, their own fuel or natively the watchdog, and others fail to start. -
setDefaultExecutionTimeout(
int timeoutMs) → void - The execution budget VMs booted after this call start with, so a module's top level gets the one its hooks get. 0 runs them unbounded.