Struct gfx::render::shade::ParamDictionary [] [src]

pub struct ParamDictionary<R: Resources> {
    pub uniforms: Vec<NamedCell<UniformValue>>,
    pub blocks: Vec<NamedCell<RawBuffer<R>>>,
    pub textures: Vec<NamedCell<TextureParam<R>>>,
}

A dictionary of parameters, meant to be shared between different programs

Fields

uniforms: Vec<NamedCell<UniformValue>>

Uniform dictionary

blocks: Vec<NamedCell<RawBuffer<R>>>

Block dictionary

textures: Vec<NamedCell<TextureParam<R>>>

Texture dictionary

Trait Implementations

impl<R: Resources> ShaderParam for ParamDictionary<R>
[src]

type Resources = R

A helper structure to contain variable indices inside the shader

Create a new link to be used with a given program

fn fill_params(&self, link: &ParamDictionaryLink, params: &mut ParamStorage<R>)

Get all the contained parameter values, using a given link