pub enum IncompatibleVertexDefinitionError {
MissingAttribute {
attribute: String,
},
FormatMismatch {
attribute: String,
shader: (Format, usize),
definition: (VertexMemberTy, usize),
},
}
Expand description
Error that can happen when the vertex definition doesn’t match the input of the vertex shader.
Variants
MissingAttribute
Fields
attribute: String
Name of the missing attribute.
An attribute of the vertex shader is missing in the vertex source.
FormatMismatch
Fields
attribute: String
Name of the attribute.
definition: (VertexMemberTy, usize)
The format in the vertex definition.
The format of an attribute does not match.
Trait Implementations
sourceimpl Clone for IncompatibleVertexDefinitionError
impl Clone for IncompatibleVertexDefinitionError
sourcefn clone(&self) -> IncompatibleVertexDefinitionError
fn clone(&self) -> IncompatibleVertexDefinitionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Error for IncompatibleVertexDefinitionError
impl Error for IncompatibleVertexDefinitionError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<IncompatibleVertexDefinitionError> for GraphicsPipelineCreationError
impl From<IncompatibleVertexDefinitionError> for GraphicsPipelineCreationError
sourcefn from(err: IncompatibleVertexDefinitionError) -> Self
fn from(err: IncompatibleVertexDefinitionError) -> Self
Performs the conversion.
sourceimpl PartialEq<IncompatibleVertexDefinitionError> for IncompatibleVertexDefinitionError
impl PartialEq<IncompatibleVertexDefinitionError> for IncompatibleVertexDefinitionError
sourcefn eq(&self, other: &IncompatibleVertexDefinitionError) -> bool
fn eq(&self, other: &IncompatibleVertexDefinitionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IncompatibleVertexDefinitionError) -> bool
fn ne(&self, other: &IncompatibleVertexDefinitionError) -> bool
This method tests for !=
.
impl Eq for IncompatibleVertexDefinitionError
impl StructuralEq for IncompatibleVertexDefinitionError
impl StructuralPartialEq for IncompatibleVertexDefinitionError
Auto Trait Implementations
impl RefUnwindSafe for IncompatibleVertexDefinitionError
impl Send for IncompatibleVertexDefinitionError
impl Sync for IncompatibleVertexDefinitionError
impl Unpin for IncompatibleVertexDefinitionError
impl UnwindSafe for IncompatibleVertexDefinitionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more