Struct luminance::shader::program::Program [] [src]

pub struct Program<C> where C: HasProgram {
    pub repr: C::Program,
}

Fields

repr: C::Program

Methods

impl<C> Program<C> where C: HasProgram
[src]

fn new(tess: Option<(&Stage<C, TessellationControlShader>, &Stage<C, TessellationEvaluationShader>)>, vertex: &Stage<C, VertexShader>, geometry: Option<&Stage<C, GeometryShader>>, fragment: &Stage<C, FragmentShader>) -> Result<Self, ProgramError>

fn uniform<T>(&self, name: &str) -> Result<Uniform<C, T>, ProgramError> where T: Uniformable

fn update<F>(&self, f: F) where F: Fn()

Trait Implementations

impl<C: Debug> Debug for Program<C> where C: HasProgram, C::Program: Debug
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<C> Drop for Program<C> where C: HasProgram
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more