DxFilter

docs.rs Crates.io Crates.io

Scale and ColorConversion done with DirectX filters. You can also create your own filters with the provided api.

Crate contains various tools to make these features possible.

For example usage, look at examples/rgbtonv12.rs

Usage

```rust // for more detailed example see examples/rgbtonv12.rs fn main() { // {...}

//                                    Texture    Texture    directx device
let filter = ConvertARGBToNV12::new(&input_tex, &output_tex, &device).unwrap();
//                directx device
filter.apply_filter(&context).unwrap();

// { ... }

} ```

AvailableFilters