FakeLoadedShaderLibrary class final
What FakeBackend.loadShaders hands back: the bundle's own names, answered with handles that survive a reload.
A fake keeps the one promise that matters about a loaded library — a handle already handed out is the same handle after refresh — because the renderer holds its vertex stages for its lifetime and a test of the reload path needs a device that behaves the way the three real ones do.
- Implemented types
Constructors
- FakeLoadedShaderLibrary(ShaderBundle bundle)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The bundle's own name, as its header spells it — what a refusal names.
no setteroverride
-
names
→ Iterable<
String> -
The stages the last accepted bundle claimed.
no setter
- refreshes ↔ int
-
How many times refresh has been called, for a test that wants to know
an editor's watcher fired.
getter/setter pair
- 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
-
refresh(
ByteData bytes) → void -
Reparses
bytesinto this library in place.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → ShaderHandle? -
The stage called
name, or null if the bundle has none.override