#[non_exhaustive]pub enum CreatePipelineError {
Device(DeviceError),
Implicit(ImplicitLayoutError),
Stage {
stage: ShaderStages,
error: StageError,
},
Internal {
stage: ShaderStages,
message: String,
},
PipelineConstants {
stage: ShaderStages,
message: String,
},
MissingFeatures(MissingFeatures),
MissingDownlevelFlags(MissingDownlevelFlags),
InvalidResource(InvalidResourceError),
Render(RenderError),
RayTracing(RayTracingPipelineError),
}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.
Device(DeviceError)
Implicit(ImplicitLayoutError)
Stage
Internal
PipelineConstants
MissingFeatures(MissingFeatures)
MissingDownlevelFlags(MissingDownlevelFlags)
InvalidResource(InvalidResourceError)
Render(RenderError)
RayTracing(RayTracingPipelineError)
Trait Implementations§
Source§impl Clone for CreatePipelineError
impl Clone for CreatePipelineError
Source§impl Debug for CreatePipelineError
impl Debug for CreatePipelineError
Source§impl Display for CreatePipelineError
impl Display for CreatePipelineError
Source§impl Error for CreatePipelineError
impl Error for CreatePipelineError
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<ColorAttachmentError> for CreatePipelineError
impl From<ColorAttachmentError> for CreatePipelineError
Source§fn from(error: ColorAttachmentError) -> Self
fn from(error: ColorAttachmentError) -> Self
Converts to this type from the input type.
Source§impl From<DepthStencilStateError> for CreatePipelineError
impl From<DepthStencilStateError> for CreatePipelineError
Source§fn from(error: DepthStencilStateError) -> Self
fn from(error: DepthStencilStateError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreatePipelineError
impl From<DeviceError> for CreatePipelineError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<ImplicitLayoutError> for CreatePipelineError
impl From<ImplicitLayoutError> for CreatePipelineError
Source§fn from(source: ImplicitLayoutError) -> Self
fn from(source: ImplicitLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for CreatePipelineError
impl From<InvalidResourceError> for CreatePipelineError
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingDownlevelFlags> for CreatePipelineError
impl From<MissingDownlevelFlags> for CreatePipelineError
Source§fn from(source: MissingDownlevelFlags) -> Self
fn from(source: MissingDownlevelFlags) -> Self
Converts to this type from the input type.
Source§impl From<MissingFeatures> for CreatePipelineError
impl From<MissingFeatures> for CreatePipelineError
Source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
Source§impl From<RayTracingPipelineError> for CreatePipelineError
impl From<RayTracingPipelineError> for CreatePipelineError
Source§fn from(source: RayTracingPipelineError) -> Self
fn from(source: RayTracingPipelineError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for CreatePipelineError
impl From<RenderError> for CreatePipelineError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for CreatePipelineError
impl WebGpuError for CreatePipelineError
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 CreatePipelineError
impl Freeze for CreatePipelineErrorwhere
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
NonZero<u64>: Freeze,
PhantomData<MaxVertexShaderOutputDeduction>: Freeze,
PhantomData<MaxFragmentShaderInputDeduction>: Freeze,
PhantomData<u32>: Freeze,
impl Move for CreatePipelineError
impl RefUnwindSafe for CreatePipelineErrorwhere
String: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
impl Send for CreatePipelineError
impl Sync for CreatePipelineError
impl Unpin for CreatePipelineError
impl UnsafeUnpin for CreatePipelineErrorwhere
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<MaxVertexShaderOutputDeduction>: UnsafeUnpin,
PhantomData<MaxFragmentShaderInputDeduction>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
impl UnwindSafe for CreatePipelineErrorwhere
BoxRaw<DeviceMismatch>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u64>: 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