pub enum PipelineError {
LayoutCreationFailed(String),
CompilationFailed {
label: Option<String>,
details: String,
},
InvalidShaderModuleForPipeline {
id: ShaderModuleId,
pipeline_label: Option<String>,
},
InvalidRenderPipeline {
id: RenderPipelineId,
},
MissingEntryPointForFragmentShader {
pipeline_label: Option<String>,
shader_id: ShaderModuleId,
},
IncompatibleColorTarget(String),
IncompatibleDepthStencilFormat(String),
FeatureNotSupported(String),
}
Expand description
An error related to the creation or management of a graphics pipeline.
Variants§
LayoutCreationFailed(String)
Failed to create a pipeline layout from the provided shader reflection data.
CompilationFailed
The graphics backend failed to compile the full pipeline state object.
Fields
InvalidShaderModuleForPipeline
A shader module provided for the pipeline was invalid or missing.
Fields
§
id: ShaderModuleId
The ID of the invalid shader module.
InvalidRenderPipeline
The specified render pipeline ID is not valid.
Fields
§
id: RenderPipelineId
The ID of the invalid render pipeline.
MissingEntryPointForFragmentShader
The fragment shader stage is present but no entry point was specified.
Fields
§
shader_id: ShaderModuleId
The ID of the fragment shader module.
IncompatibleColorTarget(String)
The color target format is not compatible with the pipeline or device.
IncompatibleDepthStencilFormat(String)
The depth/stencil format is not compatible with the pipeline or device.
FeatureNotSupported(String)
A required graphics feature is not supported by the device.
Trait Implementations§
Source§impl Debug for PipelineError
impl Debug for PipelineError
Source§impl Display for PipelineError
impl Display for PipelineError
Source§impl Error for PipelineError
impl Error for PipelineError
1.30.0 · 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<PipelineError> for ResourceError
impl From<PipelineError> for ResourceError
Source§fn from(err: PipelineError) -> Self
fn from(err: PipelineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PipelineError
impl RefUnwindSafe for PipelineError
impl Send for PipelineError
impl Sync for PipelineError
impl Unpin for PipelineError
impl UnwindSafe for PipelineError
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