Struct radiant_rs::postprocessors::Basic [] [src]

pub struct Basic { /* fields omitted */ }

A basic postprocessor that applies a Program to the given input once.

Methods

impl Basic
[src]

Creates a new instance. Takes the name of the program uniform that is to receive the input sampler2D.

Trait Implementations

impl Postprocessor for Basic
[src]

Custom type for the args parameter supplied to process() and draw().

Expected to return a texture to draw to.

Expected to draw final result. Draws issued within this function will target the rendertarget that the postprocessor is supposed to render to. Read more

Expected to processes input data. Draws issued within this function will target the texure returned by target() unless overridden via Renderer::render_to(). This function is provided as you could also do this in draw(). Read more