Enum wgpu::naga::valid::FunctionError
source · pub enum FunctionError {
Show 34 variants
Expression {
handle: Handle<Expression>,
source: ExpressionError,
},
ExpressionAlreadyInScope(Handle<Expression>),
LocalVariable {
handle: Handle<LocalVariable>,
name: String,
source: LocalVariableError,
},
InvalidArgumentType {
index: usize,
name: String,
},
NonConstructibleReturnType,
InvalidArgumentPointerSpace {
index: usize,
name: String,
space: AddressSpace,
},
InstructionsAfterReturn,
BreakOutsideOfLoopOrSwitch,
ContinueOutsideOfLoop,
InvalidReturnSpot,
InvalidReturnType(Option<Handle<Expression>>),
InvalidIfType(Handle<Expression>),
InvalidSwitchType(Handle<Expression>),
ConflictingSwitchCase(SwitchValue),
ConflictingCaseType,
MissingDefaultCase,
MultipleDefaultCases,
LastCaseFallTrough,
InvalidStorePointer(Handle<Expression>),
InvalidStoreValue(Handle<Expression>),
InvalidStoreTypes {
pointer: Handle<Expression>,
value: Handle<Expression>,
},
InvalidImageStore(ExpressionError),
InvalidCall {
function: Handle<Function>,
error: CallError,
},
InvalidAtomic(AtomicError),
InvalidRayQueryExpression(Handle<Expression>),
InvalidAccelerationStructure(Handle<Expression>),
InvalidRayDescriptor(Handle<Expression>),
InvalidRayQueryType(Handle<Type>),
NonUniformControlFlow(UniformityRequirements, Handle<Expression>, UniformityDisruptor),
PipelineInputRegularFunction {
name: String,
},
PipelineOutputRegularFunction,
NonUniformWorkgroupUniformLoad(UniformityDisruptor),
WorkgroupUniformLoadExpressionMismatch(Handle<Expression>),
WorkgroupUniformLoadInvalidPointer(Handle<Expression>),
}
Variants§
Expression
ExpressionAlreadyInScope(Handle<Expression>)
LocalVariable
InvalidArgumentType
NonConstructibleReturnType
InvalidArgumentPointerSpace
InstructionsAfterReturn
BreakOutsideOfLoopOrSwitch
ContinueOutsideOfLoop
InvalidReturnSpot
InvalidReturnType(Option<Handle<Expression>>)
InvalidIfType(Handle<Expression>)
InvalidSwitchType(Handle<Expression>)
ConflictingSwitchCase(SwitchValue)
ConflictingCaseType
MissingDefaultCase
MultipleDefaultCases
LastCaseFallTrough
InvalidStorePointer(Handle<Expression>)
InvalidStoreValue(Handle<Expression>)
InvalidStoreTypes
InvalidImageStore(ExpressionError)
InvalidCall
InvalidAtomic(AtomicError)
InvalidRayQueryExpression(Handle<Expression>)
InvalidAccelerationStructure(Handle<Expression>)
InvalidRayDescriptor(Handle<Expression>)
InvalidRayQueryType(Handle<Type>)
NonUniformControlFlow(UniformityRequirements, Handle<Expression>, UniformityDisruptor)
PipelineInputRegularFunction
PipelineOutputRegularFunction
NonUniformWorkgroupUniformLoad(UniformityDisruptor)
WorkgroupUniformLoadExpressionMismatch(Handle<Expression>)
WorkgroupUniformLoadInvalidPointer(Handle<Expression>)
Trait Implementations§
source§impl Clone for FunctionError
impl Clone for FunctionError
source§fn clone(&self) -> FunctionError
fn clone(&self) -> FunctionError
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 FunctionError
impl Debug for FunctionError
source§impl Display for FunctionError
impl Display for FunctionError
source§impl Error for FunctionError
impl Error for FunctionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AtomicError> for FunctionError
impl From<AtomicError> for FunctionError
source§fn from(source: AtomicError) -> FunctionError
fn from(source: AtomicError) -> FunctionError
Converts to this type from the input type.
source§impl From<FunctionError> for EntryPointError
impl From<FunctionError> for EntryPointError
source§fn from(source: FunctionError) -> EntryPointError
fn from(source: FunctionError) -> EntryPointError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FunctionError
impl Send for FunctionError
impl Sync for FunctionError
impl Unpin for FunctionError
impl UnwindSafe for FunctionError
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