Enum gfx::pso::ElementError
source · pub enum ElementError<S> {
NotFound(S),
Offset {
name: S,
shader_offset: ElemOffset,
code_offset: ElemOffset,
},
Format {
name: S,
shader_format: ConstFormat,
code_format: ConstFormat,
},
}
Expand description
Error matching an element inside the constant buffer.
Variants§
NotFound(S)
Element not found.
Offset
Fields
§
name: S
Element name.
§
shader_offset: ElemOffset
Element byte offset in the shader-side constant buffer.
§
code_offset: ElemOffset
Element byte offset in the code-side constant buffer.
Element offset mismatch.
Format
Fields
§
name: S
Element name.
§
shader_format: ConstFormat
Element format in the shader-side constant buffer.
§
code_format: ConstFormat
Element format in the code-side constant buffer.
Element format mismatch.
Trait Implementations§
source§impl<S: Clone> Clone for ElementError<S>
impl<S: Clone> Clone for ElementError<S>
source§fn clone(&self) -> ElementError<S>
fn clone(&self) -> ElementError<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 ElementError<S>
impl<S: Debug> Debug for ElementError<S>
source§impl<S: Debug + Display> Error for ElementError<S>
impl<S: Debug + Display> Error for ElementError<S>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl<'a> From<ElementError<&'a str>> for ElementError<String>
impl<'a> From<ElementError<&'a str>> for ElementError<String>
source§fn from(other: ElementError<&'a str>) -> ElementError<String>
fn from(other: ElementError<&'a str>) -> ElementError<String>
Converts to this type from the input type.
source§impl<S: PartialEq> PartialEq<ElementError<S>> for ElementError<S>
impl<S: PartialEq> PartialEq<ElementError<S>> for ElementError<S>
source§fn eq(&self, other: &ElementError<S>) -> bool
fn eq(&self, other: &ElementError<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.