pub enum ExpressionError {
Show 53 variants
DoesntExist,
NotInScope,
InvalidBaseType(Handle<Expression>),
InvalidIndexType(Handle<Expression>),
NegativeIndex(Handle<Expression>),
IndexOutOfBounds(Handle<Expression>, u32),
IndexMustBeConstant(Handle<Expression>),
FunctionArgumentDoesntExist(u32),
InvalidPointerType(Handle<Expression>),
InvalidArrayType(Handle<Expression>),
InvalidRayQueryType(Handle<Expression>),
InvalidSplatType(Handle<Expression>),
InvalidVectorType(Handle<Expression>),
InvalidSwizzleComponent(SwizzleComponent, VectorSize),
Compose(ComposeError),
IndexableLength(IndexableLengthError),
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>),
InvalidBinaryOperandTypes(BinaryOperator, Handle<Expression>, Handle<Expression>),
InvalidSelectTypes,
InvalidBooleanVector(Handle<Expression>),
InvalidFloatArgument(Handle<Expression>),
Type(ResolveError),
ExpectedGlobalVariable,
ExpectedGlobalOrArgument,
ExpectedBindingArrayType(Handle<Type>),
ExpectedImageType(Handle<Type>),
ExpectedSamplerType(Handle<Type>),
InvalidImageClass(ImageClass),
InvalidDerivative,
InvalidImageArrayIndex,
InvalidImageOtherIndex,
InvalidImageArrayIndexType(Handle<Expression>),
InvalidImageOtherIndexType(Handle<Expression>),
InvalidImageCoordinateType(ImageDimension, Handle<Expression>),
ComparisonSamplingMismatch {
image: ImageClass,
sampler: bool,
has_ref: bool,
},
InvalidSampleOffsetExprType,
InvalidSampleOffset(ImageDimension, Handle<Expression>),
InvalidDepthReference(Handle<Expression>),
InvalidDepthSampleLevel,
InvalidGatherLevel,
InvalidGatherComponent(SwizzleComponent),
InvalidGatherDimension(ImageDimension),
InvalidSampleLevelExactType(Handle<Expression>),
InvalidSampleLevelBiasType(Handle<Expression>),
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>),
InvalidCastArgument,
WrongArgumentCount(MathFunction),
InvalidArgumentType(MathFunction, u32, Handle<Expression>),
InvalidAtomicResultType(Handle<Type>),
InvalidWorkGroupUniformLoadResultType(Handle<Type>),
MissingCapabilities(Capabilities),
Literal(LiteralError),
UnsupportedWidth(MathFunction, ScalarKind, Bytes),
}
Variants§
DoesntExist
NotInScope
InvalidBaseType(Handle<Expression>)
InvalidIndexType(Handle<Expression>)
NegativeIndex(Handle<Expression>)
IndexOutOfBounds(Handle<Expression>, u32)
IndexMustBeConstant(Handle<Expression>)
FunctionArgumentDoesntExist(u32)
InvalidPointerType(Handle<Expression>)
InvalidArrayType(Handle<Expression>)
InvalidRayQueryType(Handle<Expression>)
InvalidSplatType(Handle<Expression>)
InvalidVectorType(Handle<Expression>)
InvalidSwizzleComponent(SwizzleComponent, VectorSize)
Compose(ComposeError)
IndexableLength(IndexableLengthError)
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>)
InvalidBinaryOperandTypes(BinaryOperator, Handle<Expression>, Handle<Expression>)
InvalidSelectTypes
InvalidBooleanVector(Handle<Expression>)
InvalidFloatArgument(Handle<Expression>)
Type(ResolveError)
ExpectedGlobalVariable
ExpectedGlobalOrArgument
ExpectedBindingArrayType(Handle<Type>)
ExpectedImageType(Handle<Type>)
ExpectedSamplerType(Handle<Type>)
InvalidImageClass(ImageClass)
InvalidDerivative
InvalidImageArrayIndex
InvalidImageOtherIndex
InvalidImageArrayIndexType(Handle<Expression>)
InvalidImageOtherIndexType(Handle<Expression>)
InvalidImageCoordinateType(ImageDimension, Handle<Expression>)
ComparisonSamplingMismatch
InvalidSampleOffsetExprType
InvalidSampleOffset(ImageDimension, Handle<Expression>)
InvalidDepthReference(Handle<Expression>)
InvalidDepthSampleLevel
InvalidGatherLevel
InvalidGatherComponent(SwizzleComponent)
InvalidGatherDimension(ImageDimension)
InvalidSampleLevelExactType(Handle<Expression>)
InvalidSampleLevelBiasType(Handle<Expression>)
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>)
InvalidCastArgument
WrongArgumentCount(MathFunction)
InvalidArgumentType(MathFunction, u32, Handle<Expression>)
InvalidAtomicResultType(Handle<Type>)
InvalidWorkGroupUniformLoadResultType(Handle<Type>)
MissingCapabilities(Capabilities)
Literal(LiteralError)
UnsupportedWidth(MathFunction, ScalarKind, Bytes)
Trait Implementations§
Source§impl Clone for ExpressionError
impl Clone for ExpressionError
Source§fn clone(&self) -> ExpressionError
fn clone(&self) -> ExpressionError
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 moreSource§impl Debug for ExpressionError
impl Debug for ExpressionError
Source§impl Display for ExpressionError
impl Display for ExpressionError
Source§impl Error for ExpressionError
impl Error for ExpressionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ComposeError> for ExpressionError
impl From<ComposeError> for ExpressionError
Source§fn from(source: ComposeError) -> Self
fn from(source: ComposeError) -> Self
Converts to this type from the input type.
Source§impl From<IndexableLengthError> for ExpressionError
impl From<IndexableLengthError> for ExpressionError
Source§fn from(source: IndexableLengthError) -> Self
fn from(source: IndexableLengthError) -> Self
Converts to this type from the input type.
Source§impl From<LiteralError> for ExpressionError
impl From<LiteralError> for ExpressionError
Source§fn from(source: LiteralError) -> Self
fn from(source: LiteralError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveError> for ExpressionError
impl From<ResolveError> for ExpressionError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExpressionError
impl RefUnwindSafe for ExpressionError
impl Send for ExpressionError
impl Sync for ExpressionError
impl Unpin for ExpressionError
impl UnwindSafe for ExpressionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)