Trait AttribProvider

Source
pub unsafe trait AttribProvider: Copy {
    // Required method
    fn apply(gl: &GlContext, a: &Attribute) -> Option<(usize, u32, usize)>;
}
Expand description

§Safety

This trait returns offsets from Self that will be used to index the raw memory of a VertexAttribBuffer. Better implemented using the attrib! macro.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§