Enum naga::valid::ExpressionError[][src]

pub enum ExpressionError {
Show 47 variants DoesntExist, NotInScope, ForwardDependency(Handle<Expression>), InvalidBaseType(Handle<Expression>), InvalidIndexType(Handle<Expression>), IndexOutOfBounds(Handle<Expression>, ScalarValue), IndexMustBeConstant(Handle<Expression>), FunctionArgumentDoesntExist(u32), ConstantDoesntExist(Handle<Constant>), GlobalVarDoesntExist(Handle<GlobalVariable>), LocalVarDoesntExist(Handle<LocalVariable>), InvalidPointerType(Handle<Expression>), InvalidArrayType(Handle<Expression>), InvalidSplatType(Handle<Expression>), InvalidVectorType(Handle<Expression>), InvalidSwizzleComponent(SwizzleComponentVectorSize), Compose(ComposeError), Proc(ProcError), InvalidUnaryOperandType(UnaryOperatorHandle<Expression>), InvalidBinaryOperandTypes(BinaryOperatorHandle<Expression>, Handle<Expression>), InvalidSelectTypes, InvalidBooleanVector(Handle<Expression>), InvalidFloatArgument(Handle<Expression>), Type(ResolveError), ExpectedGlobalVariable, ExpectedGlobalOrArgument, CallToUndeclaredFunction(Handle<Function>), ExpectedImageType(Handle<Type>), ExpectedSamplerType(Handle<Type>), InvalidImageClass(ImageClass), InvalidDerivative, InvalidImageArrayIndex, InvalidImageOtherIndex, InvalidImageArrayIndexType(Handle<Expression>), InvalidImageOtherIndexType(Handle<Expression>), InvalidImageCoordinateType(ImageDimensionHandle<Expression>), ComparisonSamplingMismatch { image: ImageClass, sampler: bool, has_ref: bool, }, InvalidSampleOffset(ImageDimensionHandle<Constant>), InvalidDepthReference(Handle<Expression>), InvalidDepthSampleLevel, InvalidSampleLevelExactType(Handle<Expression>), InvalidSampleLevelBiasType(Handle<Expression>), InvalidSampleLevelGradientType(ImageDimensionHandle<Expression>), InvalidCastArgument, WrongArgumentCount(MathFunction), InvalidArgumentType(MathFunctionu32Handle<Expression>), InvalidAtomicResultType(ScalarKindBytes),
}

Variants

DoesntExist
NotInScope
ForwardDependency(Handle<Expression>)

Tuple Fields of ForwardDependency

0: Handle<Expression>
InvalidBaseType(Handle<Expression>)

Tuple Fields of InvalidBaseType

0: Handle<Expression>
InvalidIndexType(Handle<Expression>)

Tuple Fields of InvalidIndexType

0: Handle<Expression>
IndexOutOfBounds(Handle<Expression>, ScalarValue)

Tuple Fields of IndexOutOfBounds

0: Handle<Expression>1: ScalarValue
IndexMustBeConstant(Handle<Expression>)

Tuple Fields of IndexMustBeConstant

0: Handle<Expression>
FunctionArgumentDoesntExist(u32)

Tuple Fields of FunctionArgumentDoesntExist

0: u32
ConstantDoesntExist(Handle<Constant>)

Tuple Fields of ConstantDoesntExist

0: Handle<Constant>
GlobalVarDoesntExist(Handle<GlobalVariable>)

Tuple Fields of GlobalVarDoesntExist

0: Handle<GlobalVariable>
LocalVarDoesntExist(Handle<LocalVariable>)

Tuple Fields of LocalVarDoesntExist

0: Handle<LocalVariable>
InvalidPointerType(Handle<Expression>)

Tuple Fields of InvalidPointerType

0: Handle<Expression>
InvalidArrayType(Handle<Expression>)

Tuple Fields of InvalidArrayType

0: Handle<Expression>
InvalidSplatType(Handle<Expression>)

Tuple Fields of InvalidSplatType

0: Handle<Expression>
InvalidVectorType(Handle<Expression>)

Tuple Fields of InvalidVectorType

0: Handle<Expression>
InvalidSwizzleComponent(SwizzleComponentVectorSize)

Tuple Fields of InvalidSwizzleComponent

0: SwizzleComponent1: VectorSize
Compose(ComposeError)

Tuple Fields of Compose

0: ComposeError
Proc(ProcError)

Tuple Fields of Proc

0: ProcError
InvalidUnaryOperandType(UnaryOperatorHandle<Expression>)

Tuple Fields of InvalidUnaryOperandType

0: UnaryOperator1: Handle<Expression>
InvalidBinaryOperandTypes(BinaryOperatorHandle<Expression>, Handle<Expression>)

Tuple Fields of InvalidBinaryOperandTypes

0: BinaryOperator1: Handle<Expression>2: Handle<Expression>
InvalidSelectTypes
InvalidBooleanVector(Handle<Expression>)

Tuple Fields of InvalidBooleanVector

0: Handle<Expression>
InvalidFloatArgument(Handle<Expression>)

Tuple Fields of InvalidFloatArgument

0: Handle<Expression>

Tuple Fields of Type

0: ResolveError
ExpectedGlobalVariable
ExpectedGlobalOrArgument
CallToUndeclaredFunction(Handle<Function>)

Tuple Fields of CallToUndeclaredFunction

0: Handle<Function>
ExpectedImageType(Handle<Type>)

Tuple Fields of ExpectedImageType

0: Handle<Type>
ExpectedSamplerType(Handle<Type>)

Tuple Fields of ExpectedSamplerType

0: Handle<Type>
InvalidImageClass(ImageClass)

Tuple Fields of InvalidImageClass

0: ImageClass
InvalidDerivative
InvalidImageArrayIndex
InvalidImageOtherIndex
InvalidImageArrayIndexType(Handle<Expression>)

Tuple Fields of InvalidImageArrayIndexType

0: Handle<Expression>
InvalidImageOtherIndexType(Handle<Expression>)

Tuple Fields of InvalidImageOtherIndexType

0: Handle<Expression>
InvalidImageCoordinateType(ImageDimensionHandle<Expression>)

Tuple Fields of InvalidImageCoordinateType

0: ImageDimension1: Handle<Expression>
ComparisonSamplingMismatch

Fields of ComparisonSamplingMismatch

image: ImageClasssampler: boolhas_ref: bool
InvalidSampleOffset(ImageDimensionHandle<Constant>)

Tuple Fields of InvalidSampleOffset

0: ImageDimension1: Handle<Constant>
InvalidDepthReference(Handle<Expression>)

Tuple Fields of InvalidDepthReference

0: Handle<Expression>
InvalidDepthSampleLevel
InvalidSampleLevelExactType(Handle<Expression>)

Tuple Fields of InvalidSampleLevelExactType

0: Handle<Expression>
InvalidSampleLevelBiasType(Handle<Expression>)

Tuple Fields of InvalidSampleLevelBiasType

0: Handle<Expression>
InvalidSampleLevelGradientType(ImageDimensionHandle<Expression>)

Tuple Fields of InvalidSampleLevelGradientType

0: ImageDimension1: Handle<Expression>
InvalidCastArgument
WrongArgumentCount(MathFunction)

Tuple Fields of WrongArgumentCount

0: MathFunction
InvalidArgumentType(MathFunctionu32Handle<Expression>)

Tuple Fields of InvalidArgumentType

0: MathFunction1: u322: Handle<Expression>
InvalidAtomicResultType(ScalarKindBytes)

Tuple Fields of InvalidAtomicResultType

0: ScalarKind1: Bytes

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.