Enum gfx::pso::ElementError
[−]
[src]
pub enum ElementError<S> { NotFound(S), Offset { name: S, shader_offset: ElemOffset, code_offset: ElemOffset, }, Format { name: S, shader_format: ConstFormat, code_format: ConstFormat, }, }
Error matching an element inside the constant buffer.
Variants
NotFound(S)
Element not found.
Offset
Element offset mismatch.
Fields of Offset
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. |
Format
Element format mismatch.
Fields of Format
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. |
Trait Implementations
impl<S: Clone> Clone for ElementError<S>
[src]
fn clone(&self) -> ElementError<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for ElementError<S>
[src]
impl<S: PartialEq> PartialEq for ElementError<S>
[src]
fn eq(&self, __arg_0: &ElementError<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ElementError<S>) -> bool
[src]
This method tests for !=
.
impl<S: Debug + Display> Display for ElementError<S>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: Debug + Display> Error for ElementError<S>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl<'a> From<ElementError<&'a str>> for ElementError<String>
[src]
fn from(other: ElementError<&'a str>) -> ElementError<String>
[src]
Performs the conversion.