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
Required Methods
fn create_link(Option<&Self>, &ProgramInfo) -> Result<Self::Link, ParameterError>
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
impl<R: Resources> ShaderParam for Option<R>impl<R: Resources> ShaderParam for ParamDictionary<R>