8 releases (breaking)

0.7.1 Oct 7, 2019
0.7.0 Aug 23, 2019
0.6.0 May 19, 2019
0.5.0 May 18, 2019
0.1.0 Oct 12, 2017

#25 in Rendering

Download history 24/week @ 2019-10-31 3/week @ 2019-11-07 13/week @ 2019-11-14 17/week @ 2019-11-21 18/week @ 2019-11-28 11/week @ 2019-12-05 303/week @ 2019-12-12 6/week @ 2019-12-19 9/week @ 2019-12-26 1/week @ 2020-01-02 17/week @ 2020-01-09 46/week @ 2020-01-16 18/week @ 2020-01-23 5/week @ 2020-01-30 4/week @ 2020-02-06

170 downloads per month


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 yourPATH.

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.


extern crate renderdoc;

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

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

    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(cap) => println!("ID: 0, Path: {}, Timestamp: {}", cap.0, cap.1),
        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 both the MIT and the Apache 2.0 licenses.

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.


~56K SLoC