Skip to main content

BasicUniformSetter

Trait BasicUniformSetter 

Source
pub trait BasicUniformSetter {
    // Provided methods
    fn set_uniform<U>(
        &mut self,
        gl: &mut Context,
        value: <U as UniformTrait>::Value,
    )
       where Self: UniformGetter<U>,
             U: UniformTrait,
             <U as UniformTrait>::Value: Into<RawUniformValue> { ... }
    fn bind_texture<U, T>(
        &mut self,
        gl: &mut Context,
        texture: T,
        texture_unit: <U as UniformTrait>::Value,
    )
       where Self: UniformGetter<U>,
             U: UniformTrait,
             <U as UniformTrait>::Value: Copy + Into<TextureUnit> + Into<RawUniformValue>,
             T: Texture { ... }
}

Provided Methods§

Source

fn set_uniform<U>( &mut self, gl: &mut Context, value: <U as UniformTrait>::Value, )

Source

fn bind_texture<U, T>( &mut self, gl: &mut Context, texture: T, texture_unit: <U as UniformTrait>::Value, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§