14 releases (9 breaking)

0.10.1 Feb 10, 2021
0.10.0 Dec 17, 2020
0.9.1 Aug 5, 2020
0.9.0 May 17, 2020
0.1.0 Oct 12, 2017

#11 in Rendering

Download history 43/week @ 2020-12-22 54/week @ 2020-12-29 61/week @ 2021-01-05 74/week @ 2021-01-12 80/week @ 2021-01-19 111/week @ 2021-01-26 49/week @ 2021-02-02 64/week @ 2021-02-09 95/week @ 2021-02-16 53/week @ 2021-02-23 54/week @ 2021-03-02 68/week @ 2021-03-09 72/week @ 2021-03-16 100/week @ 2021-03-23 102/week @ 2021-03-30 65/week @ 2021-04-06

293 downloads per month
Used in wgpu-mipmap


1.5K SLoC


Build Status Crates.io Documentation

Rust bindings to RenderDoc, a popular graphics debugger.

RenderDoc is a free and open source graphics debugging tool. RenderDoc allows game developers to take frame captures of their applications, replay them, examine the graphics pipeline state, and potentially identify nasty graphics bugs.

These bindings require that RenderDoc be installed on the target machine, with either renderdoc.dll or librenderdoc.so visible from your $PATH.

For more details on how to use this API to integrate your game or renderer with the RenderDoc profiler, consult the in-application API documentation.


use renderdoc::{RenderDoc, V100, V110};

fn main() {
    let mut rd: RenderDoc<V110> = RenderDoc::new().expect("Unable to connect");

    let (major, minor, patch) = rd.get_api_version();
    assert_eq!(major, 1u32);
    assert!(minor >= 1u32);

    // When a certain key is pressed, trigger a single-frame capture like this.

    // If you specify version `V110` or newer, you can trigger a multi-frame
    // capture like this.

    // Query the details of an existing capture like this.
    match rd.get_capture(0) {
        Some((path, capture_time)) => println!("ID: 0, Path: {}, Captured: {:?}", path, capture_time),
        None => println!("No capture found with ID of 0!"),

    // Downgrade your effective API version at run-time like this.
    let mut rd: RenderDoc<V100> = rd.into();

    // Now this line will no longer compile!
    // rd.trigger_multi_frame_capture(3);

Working examples are available in the examples directory.


renderdoc-rs is free and open source software distributed under the terms of either the MIT or the Apache 2.0 license, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~33K SLoC