Enum gfx::PipelineStateError
source · 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 copy 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<PipelineStateError<S>> for PipelineStateError<S>
impl<S: PartialEq> PartialEq<PipelineStateError<S>> for PipelineStateError<S>
source§fn eq(&self, other: &PipelineStateError<S>) -> bool
fn eq(&self, other: &PipelineStateError<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.