Trait luminance::shader::program::UniformInterface [] [src]

pub trait UniformInterface: Sized {
    fn uniform_interface<'a>(
        builder: UniformBuilder<'a>
    ) -> Result<(Self, Vec<UniformWarning>)>; }

Class of types that can act as uniform interfaces in typed programs.

A uniform interface is a value that contains uniforms. The purpose of a uniform interface is to be stored in a typed program and handed back to the programmer when the program is available in a pipeline.

Required Methods

Build the uniform interface.

When mapping a uniform, if you want to accept failures, you can discard the error and use UniformBuilder::unbound to let the uniform pass through, and collect the uniform warning.

Implementations on Foreign Types

impl UniformInterface for ()
[src]

Implementors