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 moresourceimpl 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
Converts to this type from the input type.
sourceimpl PartialEq<IncompatibleVertexDefinitionError> for IncompatibleVertexDefinitionError
impl PartialEq<IncompatibleVertexDefinitionError> for IncompatibleVertexDefinitionError
sourcefn eq(&self, other: &IncompatibleVertexDefinitionError) -> bool
fn eq(&self, other: &IncompatibleVertexDefinitionError) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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