[][src]Function caper::renderer::posteffect::render_to_texture

pub fn render_to_texture<T, F, C>(
    system: &PostEffect,
    context: &C,
    target: &mut T,
    draw: F
) -> (Texture2d, DepthTexture2d) where
    T: Surface,
    F: FnMut(&mut SimpleFrameBuffer<'_>),
    C: Facade + Clone

Renders the post effect on to the scene rendered in the draw FnMut