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]

Creates a program from a fragment shader file.

Creates a program from a fragment shader string.

Sets a uniform value by name.

Removes a uniform value by name.

Trait Implementations

impl Clone for Program
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Program
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Program

impl !Sync for Program