Struct caper::shader::Shaders [] [src]

pub struct Shaders {
    pub shaders: HashMap<&'static str, Program>,
    pub post_shaders: HashMap<&'static str, Program>,
}

Contains all the shaders to be used

Fields

Map containing all the shaders used to render the RenderItems

Map containing all the shaders to be used for post processing

Methods

impl Shaders
[src]

Creates a new instance of Shaders

Add a new shader to the map that can used for rendering the RenderItems

Add a new shader to the post_shaders map that can be used for rendering post processing