pub unsafe trait Attribute: Sized {
// Required method
fn get_type() -> AttributeType;
// Provided method
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.