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
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
sourceimpl From<IncompatibleVertexDefinitionError> for GraphicsPipelineCreationError
impl From<IncompatibleVertexDefinitionError> for GraphicsPipelineCreationError
sourcefn from(err: IncompatibleVertexDefinitionError) -> GraphicsPipelineCreationError
fn from(err: IncompatibleVertexDefinitionError) -> GraphicsPipelineCreationError
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.