Struct radiant_rs::Program [] [src]

pub struct Program {
    pub uniforms: UniformList,
    // some fields omitted
}

A shader program and its uniforms.

Cloning a program creates a new program, referencing the internal shaders of the source program but using its own copy of the uniforms.

Fields

Methods

impl Program
[src]

[src]

Creates a program from a fragment shader file.

[src]

Creates a program from a fragment shader string.

[src]

Sets a uniform value by name.

[src]

Removes a uniform value by name.

Trait Implementations

impl Clone for Program
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more