#[non_exhaustive]pub enum CreateShaderModuleError {
Parsing(ShaderError<ParseError>),
ParsingGlsl(ShaderError<ParseErrors>),
ParsingSpirV(ShaderError<Error>),
Generation,
Device(DeviceError),
Validation(ShaderError<WithSpan<ValidationError>>),
MissingFeatures(MissingFeatures),
InvalidGroupIndex {
bind: ResourceBinding,
group: u32,
limit: u32,
},
NotCompiledForBackend,
IncorrectPassthroughEntryPointCount,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parsing(ShaderError<ParseError>)
Available on crate feature
wgsl only.ParsingGlsl(ShaderError<ParseErrors>)
Available on crate feature
glsl only.ParsingSpirV(ShaderError<Error>)
Available on crate feature
spirv only.Generation
Device(DeviceError)
Validation(ShaderError<WithSpan<ValidationError>>)
MissingFeatures(MissingFeatures)
InvalidGroupIndex
NotCompiledForBackend
IncorrectPassthroughEntryPointCount
Trait Implementations§
Source§impl Clone for CreateShaderModuleError
impl Clone for CreateShaderModuleError
Source§impl Debug for CreateShaderModuleError
impl Debug for CreateShaderModuleError
Source§impl Display for CreateShaderModuleError
impl Display for CreateShaderModuleError
Source§impl Error for CreateShaderModuleError
impl Error for CreateShaderModuleError
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<DeviceError> for CreateShaderModuleError
impl From<DeviceError> for CreateShaderModuleError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingFeatures> for CreateShaderModuleError
impl From<MissingFeatures> for CreateShaderModuleError
Source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for CreateShaderModuleError
impl WebGpuError for CreateShaderModuleError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU
ErrorType.Auto Trait Implementations§
impl Forget for CreateShaderModuleError
impl Freeze for CreateShaderModuleErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ParseError is !null: Freeze,
PhantomData<ParseError>: Freeze,
*const ParseErrors is !null: Freeze,
PhantomData<ParseErrors>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
*const WithSpan<ValidationError> is !null: Freeze,
PhantomData<WithSpan<ValidationError>>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
impl Move for CreateShaderModuleError
impl RefUnwindSafe for CreateShaderModuleErrorwhere
String: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl Send for CreateShaderModuleErrorwhere
RawVecInner: Send,
BoxRaw<ParseError>: Send,
BoxRaw<ParseErrors>: Send,
BoxRaw<Error>: Send,
BoxRaw<DeviceMismatch>: Send,
BoxRaw<WithSpan<ValidationError>>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
impl Sync for CreateShaderModuleErrorwhere
RawVecInner: Sync,
BoxRaw<ParseError>: Sync,
BoxRaw<ParseErrors>: Sync,
BoxRaw<Error>: Sync,
BoxRaw<DeviceMismatch>: Sync,
BoxRaw<WithSpan<ValidationError>>: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
impl Unpin for CreateShaderModuleError
impl UnsafeUnpin for CreateShaderModuleErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ParseError is !null: UnsafeUnpin,
PhantomData<ParseError>: UnsafeUnpin,
*const ParseErrors is !null: UnsafeUnpin,
PhantomData<ParseErrors>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
*const WithSpan<ValidationError> is !null: UnsafeUnpin,
PhantomData<WithSpan<ValidationError>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
impl UnwindSafe for CreateShaderModuleErrorwhere
RawVecInner: UnwindSafe,
BoxRaw<ParseError>: UnwindSafe,
BoxRaw<ParseErrors>: UnwindSafe,
BoxRaw<Error>: UnwindSafe,
BoxRaw<DeviceMismatch>: UnwindSafe,
BoxRaw<WithSpan<ValidationError>>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
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