pub enum MaterialError {
Show 29 variants
NoResources,
Internal(String),
ShaderCompilation {
vertex_errors: Option<String>,
fragment_errors: Option<String>,
vertex_shader: String,
fragment_shader: String,
link: Option<String>,
},
InvalidName {
node: MaterialGraphNodeId,
name: String,
},
NodeDoesNotExists(MaterialGraphNodeId),
InvalidConnection {
from: MaterialGraphNodeId,
to: MaterialGraphNodeId,
},
InvalidConnectionParam {
target: MaterialGraphNodeId,
name: String,
},
InvalidConnectionSource {
target: MaterialGraphNodeId,
source: MaterialGraphNodeId,
},
MissingConnection {
id: MaterialGraphNodeId,
param: Option<String>,
},
TargetNodeRequiresParamName(MaterialGraphNodeId),
AttributeInputHasNoDefaultValue {
node: MaterialGraphNodeId,
name: String,
},
FunctionNotFoundInLibrary {
node: MaterialGraphNodeId,
name: String,
},
CannotConnectNodeToItself(MaterialGraphNodeId),
MismatchingConnectionTypes {
from: MaterialGraphNodeId,
from_value_type: Option<MaterialValueType>,
to: MaterialGraphNodeId,
to_value_type: Option<MaterialValueType>,
param: Option<String>,
},
GraphIsCyclic(Vec<MaterialGraphNodeId>),
NoTransferFound(MaterialGraphNodeId),
CouldNotCompileVertexShader(String),
CouldNotCompileFragmentShader(String),
FunctionOutputHasNoNode,
FunctionInputHasNoNode(String),
NoShaderVersion(Box<MaterialSignature>),
InvalidUniformTypeToSubmit(MaterialValueType),
CouldNotBuildSubgraphForSignature(Box<MaterialSignature>),
SubgraphInputsDoesNotMatchSignature(HashSet<String>, Box<MaterialSignature>),
Baking(MaterialGraph, Box<MaterialError>),
CouldNotCreateRenderTarget(Box<RenderTargetError>),
FunctionIsNotValidMiddleware(String),
FunctionDoesNotExists(String),
MiddlewareDoesNotExists(String),
}
Variants§
NoResources
Internal(String)
ShaderCompilation
Fields
InvalidName
NodeDoesNotExists(MaterialGraphNodeId)
InvalidConnection
InvalidConnectionParam
InvalidConnectionSource
MissingConnection
TargetNodeRequiresParamName(MaterialGraphNodeId)
AttributeInputHasNoDefaultValue
FunctionNotFoundInLibrary
CannotConnectNodeToItself(MaterialGraphNodeId)
MismatchingConnectionTypes
Fields
§
from: MaterialGraphNodeId
§
from_value_type: Option<MaterialValueType>
§
to_value_type: Option<MaterialValueType>
GraphIsCyclic(Vec<MaterialGraphNodeId>)
NoTransferFound(MaterialGraphNodeId)
CouldNotCompileVertexShader(String)
CouldNotCompileFragmentShader(String)
FunctionOutputHasNoNode
FunctionInputHasNoNode(String)
NoShaderVersion(Box<MaterialSignature>)
InvalidUniformTypeToSubmit(MaterialValueType)
CouldNotBuildSubgraphForSignature(Box<MaterialSignature>)
SubgraphInputsDoesNotMatchSignature(HashSet<String>, Box<MaterialSignature>)
Baking(MaterialGraph, Box<MaterialError>)
CouldNotCreateRenderTarget(Box<RenderTargetError>)
FunctionIsNotValidMiddleware(String)
FunctionDoesNotExists(String)
MiddlewareDoesNotExists(String)
Trait Implementations§
source§impl Clone for MaterialError
impl Clone for MaterialError
source§fn clone(&self) -> MaterialError
fn clone(&self) -> MaterialError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MaterialError
impl Send for MaterialError
impl Sync for MaterialError
impl Unpin for MaterialError
impl UnwindSafe for MaterialError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more