Struct bgfx::Program [] [src]

pub struct Program<'s> {
    // some fields omitted
}

Shader program.

The program holds a vertex shader and a fragment shader.

Methods

impl<'s> Program<'s>

fn new(vsh: Shader<'s>, fsh: Shader<'s>) -> Program<'s>

Creates a new program from a vertex shader and a fragment shader. Ownerships of the shaders are moved to the program.

Trait Implementations

impl<'s> Drop for Program<'s>

fn drop(&mut self)