pub enum PipelineStateError<S> {
Program(ProgramError),
DescriptorInit(InitError<S>),
DeviceCreate(CreationError),
}
Expand description
Error creating a PipelineState
Variants§
Program(ProgramError)
Shader program failed to link.
DescriptorInit(InitError<S>)
Unable to create PSO descriptor due to mismatched formats.
DeviceCreate(CreationError)
Device failed to create the handle give the descriptor.
Trait Implementations§
Source§impl<S: Clone> Clone for PipelineStateError<S>
impl<S: Clone> Clone for PipelineStateError<S>
Source§fn clone(&self) -> PipelineStateError<S>
fn clone(&self) -> PipelineStateError<S>
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<S: Debug> Debug for PipelineStateError<S>
impl<S: Debug> Debug for PipelineStateError<S>
Source§impl<S: Debug + Display> Error for PipelineStateError<S>
impl<S: Debug + Display> Error for PipelineStateError<S>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<S> From<CreationError> for PipelineStateError<S>
impl<S> From<CreationError> for PipelineStateError<S>
Source§fn from(e: CreationError) -> Self
fn from(e: CreationError) -> Self
Converts to this type from the input type.
Source§impl<S> From<InitError<S>> for PipelineStateError<S>
impl<S> From<InitError<S>> for PipelineStateError<S>
Source§impl<'a> From<PipelineStateError<&'a str>> for PipelineStateError<String>
impl<'a> From<PipelineStateError<&'a str>> for PipelineStateError<String>
Source§fn from(pse: PipelineStateError<&'a str>) -> PipelineStateError<String>
fn from(pse: PipelineStateError<&'a str>) -> PipelineStateError<String>
Converts to this type from the input type.
Source§impl<S> From<ProgramError> for PipelineStateError<S>
impl<S> From<ProgramError> for PipelineStateError<S>
Source§fn from(e: ProgramError) -> Self
fn from(e: ProgramError) -> Self
Converts to this type from the input type.
Source§impl<S: PartialEq> PartialEq for PipelineStateError<S>
impl<S: PartialEq> PartialEq for PipelineStateError<S>
impl<S> StructuralPartialEq for PipelineStateError<S>
Auto Trait Implementations§
impl<S> Freeze for PipelineStateError<S>where
S: Freeze,
impl<S> RefUnwindSafe for PipelineStateError<S>where
S: RefUnwindSafe,
impl<S> Send for PipelineStateError<S>where
S: Send,
impl<S> Sync for PipelineStateError<S>where
S: Sync,
impl<S> Unpin for PipelineStateError<S>where
S: Unpin,
impl<S> UnwindSafe for PipelineStateError<S>where
S: 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