Trait glium::vertex::Attribute
[−]
[src]
pub unsafe trait Attribute: Sized {
fn get_type() -> AttributeType;
fn is_supported<C>(caps: &C) -> bool where C: CapabilitiesSource { ... }
}Trait for types that can be used as vertex attributes.
Required Methods
fn get_type() -> AttributeType
Get the type of data.
Provided Methods
fn is_supported<C>(caps: &C) -> bool where C: CapabilitiesSource
Returns true if the backend supports this type of attribute.
Implementors
impl Attribute for i8impl Attribute for (i8, i8)impl Attribute for [i8; 2]impl Attribute for (i8, i8, i8)impl Attribute for [i8; 3]impl Attribute for (i8, i8, i8, i8)impl Attribute for [i8; 4]impl Attribute for u8impl Attribute for (u8, u8)impl Attribute for [u8; 2]impl Attribute for (u8, u8, u8)impl Attribute for [u8; 3]impl Attribute for (u8, u8, u8, u8)impl Attribute for [u8; 4]impl Attribute for i16impl Attribute for (i16, i16)impl Attribute for [i16; 2]impl Attribute for (i16, i16, i16)impl Attribute for [i16; 3]impl Attribute for (i16, i16, i16, i16)impl Attribute for [i16; 4]impl Attribute for u16impl Attribute for (u16, u16)impl Attribute for [u16; 2]impl Attribute for (u16, u16, u16)impl Attribute for [u16; 3]impl Attribute for (u16, u16, u16, u16)impl Attribute for [u16; 4]impl Attribute for i32impl Attribute for (i32, i32)impl Attribute for [i32; 2]impl Attribute for (i32, i32, i32)impl Attribute for [i32; 3]impl Attribute for (i32, i32, i32, i32)impl Attribute for [i32; 4]impl Attribute for u32impl Attribute for (u32, u32)impl Attribute for [u32; 2]impl Attribute for (u32, u32, u32)impl Attribute for [u32; 3]impl Attribute for (u32, u32, u32, u32)impl Attribute for [u32; 4]impl Attribute for i64impl Attribute for (i64, i64)impl Attribute for [i64; 2]impl Attribute for (i64, i64, i64)impl Attribute for [i64; 3]impl Attribute for (i64, i64, i64, i64)impl Attribute for [i64; 4]impl Attribute for u64impl Attribute for (u64, u64)impl Attribute for [u64; 2]impl Attribute for (u64, u64, u64)impl Attribute for [u64; 3]impl Attribute for (u64, u64, u64, u64)impl Attribute for [u64; 4]impl Attribute for f32impl Attribute for (f32, f32)impl Attribute for [f32; 2]impl Attribute for (f32, f32, f32)impl Attribute for [f32; 3]impl Attribute for (f32, f32, f32, f32)impl Attribute for [f32; 4]impl Attribute for [[f32; 2]; 2]impl Attribute for [[f32; 3]; 3]impl Attribute for [[f32; 4]; 4]impl Attribute for f64impl Attribute for (f64, f64)impl Attribute for [f64; 2]impl Attribute for (f64, f64, f64)impl Attribute for [f64; 3]impl Attribute for (f64, f64, f64, f64)impl Attribute for [f64; 4]impl Attribute for [[f64; 2]; 2]impl Attribute for [[f64; 3]; 3]impl Attribute for [[f64; 4]; 4]