smaa-rs crates.io docs.rs

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

Example

```rust // Create SMAA target let mut smaatarget = SmaaTarget::new( &device, &queue, window.innersize().width, window.innersize().height, swapchainformat, SmaaMode::Smaa1X, );

// Main loop eventloop.run(move |event, _, controlflow| { match event { Event::RedrawRequested() => { let outputframe = swapchain.getcurrentframe().unwrap().output; let frame = smaatarget.startframe(&device, &queue, &outputframe.view);

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

});

```