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(SwizzleComponent, VectorSize),
Compose(ComposeError),
Proc(ProcError),
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>),
InvalidBinaryOperandTypes(BinaryOperator, Handle<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(ImageDimension, Handle<Expression>),
ComparisonSamplingMismatch {
image: ImageClass,
sampler: bool,
has_ref: bool,
},
InvalidSampleOffset(ImageDimension, Handle<Constant>),
InvalidDepthReference(Handle<Expression>),
InvalidDepthSampleLevel,
InvalidSampleLevelExactType(Handle<Expression>),
InvalidSampleLevelBiasType(Handle<Expression>),
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>),
InvalidCastArgument,
WrongArgumentCount(MathFunction),
InvalidArgumentType(MathFunction, u32, Handle<Expression>),
InvalidAtomicResultType(ScalarKind, Bytes),
}
Variants
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
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(SwizzleComponent, VectorSize)
Tuple Fields of InvalidSwizzleComponent
Compose(ComposeError)
Tuple Fields of Compose
0: ComposeError
Proc(ProcError)
Tuple Fields of Proc
0: ProcError
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>)
Tuple Fields of InvalidUnaryOperandType
0: UnaryOperator
1: Handle<Expression>
InvalidBinaryOperandTypes(BinaryOperator, Handle<Expression>, Handle<Expression>)
Tuple Fields of InvalidBinaryOperandTypes
InvalidBooleanVector(Handle<Expression>)
Tuple Fields of InvalidBooleanVector
0: Handle<Expression>
InvalidFloatArgument(Handle<Expression>)
Tuple Fields of InvalidFloatArgument
0: Handle<Expression>
Type(ResolveError)
Tuple Fields of Type
0: ResolveError
InvalidImageClass(ImageClass)
Tuple Fields of InvalidImageClass
0: ImageClass
InvalidImageArrayIndexType(Handle<Expression>)
Tuple Fields of InvalidImageArrayIndexType
0: Handle<Expression>
InvalidImageOtherIndexType(Handle<Expression>)
Tuple Fields of InvalidImageOtherIndexType
0: Handle<Expression>
InvalidImageCoordinateType(ImageDimension, Handle<Expression>)
Tuple Fields of InvalidImageCoordinateType
0: ImageDimension
1: Handle<Expression>
Fields of ComparisonSamplingMismatch
InvalidSampleOffset(ImageDimension, Handle<Constant>)
Tuple Fields of InvalidSampleOffset
0: ImageDimension
1: Handle<Constant>
InvalidDepthReference(Handle<Expression>)
Tuple Fields of InvalidDepthReference
0: Handle<Expression>
InvalidSampleLevelExactType(Handle<Expression>)
Tuple Fields of InvalidSampleLevelExactType
0: Handle<Expression>
InvalidSampleLevelBiasType(Handle<Expression>)
Tuple Fields of InvalidSampleLevelBiasType
0: Handle<Expression>
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>)
Tuple Fields of InvalidSampleLevelGradientType
0: ImageDimension
1: Handle<Expression>
WrongArgumentCount(MathFunction)
Tuple Fields of WrongArgumentCount
0: MathFunction
InvalidArgumentType(MathFunction, u32, Handle<Expression>)
Tuple Fields of InvalidArgumentType
InvalidAtomicResultType(ScalarKind, Bytes)
Tuple Fields of InvalidAtomicResultType
0: ScalarKind
1: Bytes
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExpressionError
impl Send for ExpressionError
impl Sync for ExpressionError
impl Unpin for ExpressionError
impl UnwindSafe for ExpressionError
Blanket Implementations
Mutably borrows from an owned value. Read more