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§

Get the type of data.

Provided Methods§

Returns true if the backend supports this type of attribute.

Implementations on Foreign Types§

Implementors§