[][src]Type Definition ggez::graphics::Shader

type Shader<C> = ShaderGeneric<GlBackendSpec, C>;

A Shader represents a handle to a user-defined shader that can be used with a ggez graphics context

Methods

impl<C> Shader<C> where
    C: 'static + Pod + Structure<ConstFormat> + Clone + Copy
[src]

pub fn send(&self, ctx: &mut Context, consts: C) -> GameResult[src]

Send data to the GPU for use with the Shader

pub fn shader_id(&self) -> ShaderId[src]

Gets the shader ID for the Shader which is used by the graphics context for identifying shaders in its cache