[][src]Macro glium::implement_buffer_content

macro_rules! implement_buffer_content {
    (__as_item $i:item) => { ... };
    (__impl $struct_name:ident [$($gs:tt)*]) => { ... };
    ($struct_name:ident,) => { ... };
    ($struct_name:ident) => { ... };
    ($struct_name:ident <$t1:tt>) => { ... };
}

Implements the glium::buffer::Content trait for the given type.

Contrary to the other similar macros, this one doesn't require you pass the list of parameters.

Only use this macro on structs. Using it with anything else will result in a segfault.

Example

struct Data {
    data: [u32]
}

implement_buffer_content!(Data);