Trait azul_glium::vertex::Attribute
source · pub unsafe trait Attribute: Sized {
fn get_type() -> AttributeType;
fn is_supported<C>(caps: &C) -> bool
where
C: CapabilitiesSource + ?Sized,
{ ... }
}
Expand description
Trait for types that can be used as vertex attributes.
Required Methods§
sourcefn get_type() -> AttributeType
fn get_type() -> AttributeType
Get the type of data.
Provided Methods§
sourcefn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
fn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this type of attribute.