Shader class

The Shader class

Annotations
  • @JsonSerializable()

Constructors

Shader({required String version, required Info info, required List<RenderPass> renderPasses})
Builds a Shader
const
Shader.fromJson(Map<String, dynamic> json)
Creates a Shader from json map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
info Info
The shader meta information
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
renderPasses List<RenderPass>
The shader render passes
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
version String
The shader version
final

Methods

copyWith({String? version, Info? info, List<RenderPass>? renderPasses}) Shader
Builds a copy of a Shader
inputSourcePaths() Set<String>
Returns the list of input source paths
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
picturePaths() Set<String>
Returns the list of picture paths
toJson() Map<String, dynamic>
Creates a json map from a Shader
toString() String
A string representation of this object.
inherited

Operators

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