Struct rin::postpo::PostProcessing[][src]

pub struct PostProcessing { /* fields omitted */ }

Implementations

impl PostProcessing[src]

pub fn new(
    gl: &Renderer<'_, Screen>,
    w: u32,
    h: u32,
    format: ColorFormat
) -> Result<PostProcessing, Error>
[src]

pub fn ssao(
    &self,
    gl: &Renderer<'_, Screen>,
    camera: &dyn CameraExt,
    color: &Texture,
    position: SSAOPosition<'_>,
    normals: Option<&Texture>,
    ambient: &Texture,
    parameters: &SSAOParameters
) -> Result<&Texture, Error>
[src]

pub fn dof(
    &self,
    gl: &Renderer<'_, Screen>,
    camera: &dyn CameraExt,
    viewport: &Rect<i32>,
    color: &Texture,
    depth: DofDepth<'_>,
    parameters: &DofParameters
) -> &Texture
[src]

pub fn fxaa_texture(&self) -> &Texture[src]

pub fn bloom_down_texture(&self, idx: usize) -> &Texture[src]

pub fn bloom_up_texture(&self, idx: usize) -> &Texture[src]

pub fn ssao_texture(&self) -> &Texture[src]

pub fn ssao_blur_texture(&self) -> &Texture[src]

pub fn ssao_color_texture(&self) -> &Texture[src]

pub fn ssao_color_attachment(&self) -> &ColorAttachment[src]

pub fn ssao_fbo(&self) -> &Rc<Fbo<ColorAttachment, DepthAttachment>>[src]

pub fn last_fbo(
    &self,
    parameters: &Parameters
) -> &Rc<Fbo<ColorAttachment, DepthAttachment>>
[src]

pub fn combine_color_ambient(
    &self,
    gl: &Renderer<'_, Screen>,
    color: &Texture,
    ambient: &Texture
) -> Result<&Texture, Error>
[src]

pub fn combine_color_ambient_with_dither(
    &self,
    gl: &Renderer<'_, Screen>,
    color: &Texture,
    ambient: &Texture
) -> Result<&Texture, Error>
[src]

pub fn fxaa(&self, gl: &Renderer<'_, Screen>, tex: &Texture) -> &Texture[src]

pub fn bloom(
    &self,
    gl: &Renderer<'_, Screen>,
    tex: &Texture,
    parameters: &BloomParameters
) -> &Texture
[src]

pub fn tonemap(
    &self,
    gl: &Renderer<'_, Screen>,
    tex: &Texture,
    bloomed_tex: Option<&Texture>,
    parameters: &TonemapParameters
) -> Result<&Texture, Error>
[src]

pub fn lut(
    &'a self,
    gl: &Renderer<'_, Screen>,
    tex: &'a Texture,
    parameters: &LutParameters
) -> &'a Texture
[src]

pub fn process_all(
    &self,
    gl: &Renderer<'_, Screen>,
    camera: &dyn CameraExt,
    viewport: &Rect<i32>,
    color: &Texture,
    position: Option<SSAOPosition<'_>>,
    normals: Option<&Texture>,
    dof_depth: Option<DofDepth<'_>>,
    ambient: &Texture,
    parameters: &Parameters
) -> Result<&Texture, Error>
[src]

pub fn process_until_ssao(
    &self,
    gl: &Renderer<'_, Screen>,
    camera: &dyn CameraExt,
    color: &Texture,
    position: Option<SSAOPosition<'_>>,
    normals: Option<&Texture>,
    ambient: &Texture,
    parameters: &Parameters
) -> Result<&Texture, Error>
[src]

pub fn process_after_ssao(
    &'a self,
    gl: &Renderer<'_, Screen>,
    camera: &dyn CameraExt,
    viewport: &Rect<i32>,
    tex: &'a Texture,
    depth: Option<DofDepth<'_>>,
    parameters: &Parameters
) -> Result<&'a Texture, Error>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for PostProcessing

impl !Send for PostProcessing

impl !Sync for PostProcessing

impl Unpin for PostProcessing

impl !UnwindSafe for PostProcessing

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]