[][src]Struct gfx_gtk::PostprocessContext

pub struct PostprocessContext<D> where
    D: Device, 
{ pub sampler: Sampler<D::Resources>, pub pso: PipelineState<D::Resources, Meta>, pub vbuf: Buffer<D::Resources, BlitVertex>, pub ibuf: Slice<D::Resources>, }

a container for the pre-built data and state needed to perform MSAA resolution and sRGB correction in the post-processing stage

Fields

sampler: Sampler<D::Resources>

a sampler for the source framebuffer

pso: PipelineState<D::Resources, Meta>

pipeline state object with rasterizer and blit shaders

vbuf: Buffer<D::Resources, BlitVertex>

a single large triangle (vertices) covering the full screen

ibuf: Slice<D::Resources>

a single large triangle (indices)

Methods

impl PostprocessContext<GlDevice>[src]

pub fn full_screen_blit<CF>(
    &self,
    encoder: &mut Encoder<GlResources, GlCommandBuffer>,
    render_screen: &GlFrameBufferTextureSrc<CF>,
    post_target: &GlFrameBuffer<GtkTargetColorFormat>
) where
    CF: Formatted<View = GtkTargetColorView>,
    CF::Channel: TextureChannel + RenderChannel,
    CF::Surface: RenderSurface + TextureSurface, 
[src]

performs a full screen pass using the original render screen as the source and the GTK framebuffer as the target, using baked-in settings TODO: make this easy to override

Auto Trait Implementations

impl<D> Send for PostprocessContext<D> where
    <<D as Device>::Resources as Resources>::Buffer: Send + Sync,
    <<D as Device>::Resources as Resources>::Mapping: Send,
    <<D as Device>::Resources as Resources>::PipelineStateObject: Send + Sync,
    <<D as Device>::Resources as Resources>::Program: Send + Sync,
    <D as Device>::Resources: Resources,
    <<D as Device>::Resources as Resources>::Sampler: Send + Sync

impl<D> Sync for PostprocessContext<D> where
    <<D as Device>::Resources as Resources>::Buffer: Send + Sync,
    <<D as Device>::Resources as Resources>::Mapping: Send,
    <<D as Device>::Resources as Resources>::PipelineStateObject: Send + Sync,
    <<D as Device>::Resources as Resources>::Program: Send + Sync,
    <D as Device>::Resources: Resources,
    <<D as Device>::Resources as Resources>::Sampler: Send + Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.