[][src]Trait glium::vertex::Attribute

pub unsafe trait Attribute: Sized {
    fn get_type() -> AttributeType;

    fn is_supported<C: ?Sized>(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.

Loading content...

Provided methods

fn is_supported<C: ?Sized>(caps: &C) -> bool where
    C: CapabilitiesSource

Returns true if the backend supports this type of attribute.

Loading content...

Implementations on Foreign Types

impl Attribute for i8[src]

impl Attribute for (i8, i8)[src]

impl Attribute for [i8; 2][src]

impl Attribute for (i8, i8, i8)[src]

impl Attribute for [i8; 3][src]

impl Attribute for (i8, i8, i8, i8)[src]

impl Attribute for [i8; 4][src]

impl Attribute for u8[src]

impl Attribute for (u8, u8)[src]

impl Attribute for [u8; 2][src]

impl Attribute for (u8, u8, u8)[src]

impl Attribute for [u8; 3][src]

impl Attribute for (u8, u8, u8, u8)[src]

impl Attribute for [u8; 4][src]

impl Attribute for i16[src]

impl Attribute for (i16, i16)[src]

impl Attribute for [i16; 2][src]

impl Attribute for (i16, i16, i16)[src]

impl Attribute for [i16; 3][src]

impl Attribute for (i16, i16, i16, i16)[src]

impl Attribute for [i16; 4][src]

impl Attribute for u16[src]

impl Attribute for (u16, u16)[src]

impl Attribute for [u16; 2][src]

impl Attribute for (u16, u16, u16)[src]

impl Attribute for [u16; 3][src]

impl Attribute for (u16, u16, u16, u16)[src]

impl Attribute for [u16; 4][src]

impl Attribute for i32[src]

impl Attribute for (i32, i32)[src]

impl Attribute for [i32; 2][src]

impl Attribute for (i32, i32, i32)[src]

impl Attribute for [i32; 3][src]

impl Attribute for (i32, i32, i32, i32)[src]

impl Attribute for [i32; 4][src]

impl Attribute for u32[src]

impl Attribute for (u32, u32)[src]

impl Attribute for [u32; 2][src]

impl Attribute for (u32, u32, u32)[src]

impl Attribute for [u32; 3][src]

impl Attribute for (u32, u32, u32, u32)[src]

impl Attribute for [u32; 4][src]

impl Attribute for i64[src]

impl Attribute for (i64, i64)[src]

impl Attribute for [i64; 2][src]

impl Attribute for (i64, i64, i64)[src]

impl Attribute for [i64; 3][src]

impl Attribute for (i64, i64, i64, i64)[src]

impl Attribute for [i64; 4][src]

impl Attribute for u64[src]

impl Attribute for (u64, u64)[src]

impl Attribute for [u64; 2][src]

impl Attribute for (u64, u64, u64)[src]

impl Attribute for [u64; 3][src]

impl Attribute for (u64, u64, u64, u64)[src]

impl Attribute for [u64; 4][src]

impl Attribute for f32[src]

impl Attribute for (f32, f32)[src]

impl Attribute for [f32; 2][src]

impl Attribute for (f32, f32, f32)[src]

impl Attribute for [f32; 3][src]

impl Attribute for (f32, f32, f32, f32)[src]

impl Attribute for [f32; 4][src]

impl Attribute for [[f32; 2]; 2][src]

impl Attribute for [[f32; 3]; 3][src]

impl Attribute for [[f32; 4]; 4][src]

impl Attribute for f64[src]

impl Attribute for (f64, f64)[src]

impl Attribute for [f64; 2][src]

impl Attribute for (f64, f64, f64)[src]

impl Attribute for [f64; 3][src]

impl Attribute for (f64, f64, f64, f64)[src]

impl Attribute for [f64; 4][src]

impl Attribute for [[f64; 2]; 2][src]

impl Attribute for [[f64; 3]; 3][src]

impl Attribute for [[f64; 4]; 4][src]

Loading content...

Implementors

Loading content...