pub enum FunctionError {
Show 36 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>),
MissingCapability(Capabilities),
NonUniformControlFlow(UniformityRequirements, Handle<Expression>, UniformityDisruptor),
PipelineInputRegularFunction {
name: String,
},
PipelineOutputRegularFunction,
NonUniformWorkgroupUniformLoad(UniformityDisruptor),
WorkgroupUniformLoadExpressionMismatch(Handle<Expression>),
WorkgroupUniformLoadInvalidPointer(Handle<Expression>),
InvalidSubgroup(SubgroupError),
}
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>)
MissingCapability(Capabilities)
NonUniformControlFlow(UniformityRequirements, Handle<Expression>, UniformityDisruptor)
PipelineInputRegularFunction
PipelineOutputRegularFunction
NonUniformWorkgroupUniformLoad(UniformityDisruptor)
WorkgroupUniformLoadExpressionMismatch(Handle<Expression>)
WorkgroupUniformLoadInvalidPointer(Handle<Expression>)
InvalidSubgroup(SubgroupError)
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)>
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<FunctionError> for EntryPointError
impl From<FunctionError> for EntryPointError
Source§fn from(source: FunctionError) -> Self
fn from(source: FunctionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionError
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
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
)