Skip to main content

renderdog_sys/
lib.rs

1//! Low-level FFI bindings for RenderDoc's in-application API (`renderdoc_app.h`).
2//!
3//! This crate ships with pregenerated bindings for docs.rs and for environments where `bindgen`
4//! (libclang) is not available. At build time, `build.rs` writes `OUT_DIR/bindings.rs` which is
5//! then included by this crate.
6//!
7//! Maintainers can regenerate bindings with:
8//!
9//! - `RENDERDOG_SYS_REGEN_BINDINGS=1 cargo build -p renderdog-sys --features bindgen`
10//! - or `python scripts/regen_bindings.py` from the workspace root
11//!
12//! Regeneration requires either the workspace `third-party/renderdoc` submodule or
13//! `RENDERDOG_SYS_HEADER=/path/to/renderdoc_app.h`.
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(clippy::all)]
18
19include!(concat!(env!("OUT_DIR"), "/bindings.rs"));