dxcapture

dxcapture is a library for capturing a Direct3D 11 device on Windows.

toml [dependencies] dxcapture = "1.0"

Details

```rs let device = dxcapture::Device::default(); let capture = dxcapture::Capture::new(&device).unwrap();

let raw = loop { match capture.getrawframe() { Ok(raw) => break raw, Err(e) => { if e == dxcapture::CaptureError::NoTexture { // async, so sometimes it's not there. continue; } panic!("{}", e); } } };

// taked primary monitor. // hoge raw ```

Optional Features

Exmaples

Documentation

License

Special Thanks

This crate completed thanks to wgc-rust-demo