smaa 0.5.0

A library for post process antialiasing using SMAA
Documentation

smaa-rs crates.io docs.rs

Post-process antialiasing for wgpu-rs, relying on the SMAA reference implementation.

Example

// Create SMAA target
let mut smaa_target = SmaaTarget::new(
    &device,
    &queue,
    window.inner_size().width,
    window.inner_size().height,
    swapchain_format,
    SmaaMode::Smaa1X,
);

// Main loop
event_loop.run(move |event, _, control_flow| {
    match event {
        Event::RedrawRequested(_) => {
            let output_frame = swap_chain.get_current_frame().unwrap().output;
            let frame = smaa_target.start_frame(&device, &queue, &output_frame.view);

            // Render the scene into `*frame`.
            // [...]
        }
        _ => {}
    }
});