Trait gfx::render::shade::ShaderParam [] [src]

pub trait ShaderParam {
    type Resources: Resources;
    type Link;
    fn create_link(Option<&Self>, &ProgramInfo) -> Result<Self::Link, ParameterError>;
    fn fill_params(&self, &Self::Link, &mut ParamStorage<Self::Resources>);
}

Abstracts the shader parameter structure, generated by the shader_param attribute

Associated Types

type Resources: Resources

A helper structure to contain variable indices inside the shader

Required Methods

Create a new link to be used with a given program

fn fill_params(&self, &Self::Link, &mut ParamStorage<Self::Resources>)

Get all the contained parameter values, using a given link

Implementors