ShaderBundleRefused class final

Raised when a device will not load a bundle, and says which and why.

One exception for every reason — bytes that are not a bundle, a section the backend has none of, an SDK it was not compiled on, a stage the backend cannot run — because the caller does one thing with all of them: report the bundle by name and keep the shaders it had. A device never answers a bundle it refuses with an empty library, because an empty library looks exactly like a bundle whose stages nobody asked for.

Implemented types

Constructors

ShaderBundleRefused({required String name, required String reason})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The bundle's own name, or empty when the bytes never got that far.
final
reason String
final
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.
override

Operators

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