Trait gfx::pso::buffer::Structure

source ·
pub trait Structure<F> {
    // Required method
    fn query(_: &str) -> Option<Element<F>>;
}
Expand description

A trait to be implemented by any struct having the layout described in the graphics API, like a vertex buffer.

Required Methods§

source

fn query(_: &str) -> Option<Element<F>>

Get the layout of an element by name.

Implementors§