#[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),
}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)
Implementations§
Source§impl CreatePipelineError
impl CreatePipelineError
Sourcepub(crate) fn from_hal_without_device_loss(error: PipelineError) -> Self
pub(crate) fn from_hal_without_device_loss(error: PipelineError) -> Self
Convert a hal::PipelineError to a CreatePipelineError, without noting device loss.
If you have a Device handy, prefer to call
Device::handle_hal_pipeline_error instead, since that checks for
device loss errors and sets the device’s lost flag accordingly.
This is deliberately not a From impl, so that ? cannot silently skip
device-loss handling.
Trait Implementations§
Source§impl Clone for CreatePipelineError
impl Clone for CreatePipelineError
Source§fn clone(&self) -> CreatePipelineError
fn clone(&self) -> CreatePipelineError
Returns a duplicate 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 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<CreatePipelineError> for CreateIndirectValidationPipelineError
impl From<CreatePipelineError> for CreateIndirectValidationPipelineError
Source§fn from(source: CreatePipelineError) -> Self
fn from(source: CreatePipelineError) -> Self
Converts to this type from the input type.
Source§impl From<CreatePipelineError> for TimestampNormalizerInitError
impl From<CreatePipelineError> for TimestampNormalizerInitError
Source§fn from(source: CreatePipelineError) -> Self
fn from(source: CreatePipelineError) -> 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<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 Freeze for CreatePipelineError
impl RefUnwindSafe for CreatePipelineError
impl Send for CreatePipelineError
impl Sync for CreatePipelineError
impl Unpin for CreatePipelineError
impl UnsafeUnpin for CreatePipelineError
impl UnwindSafe for CreatePipelineError
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more