Skip to content

Commit

Permalink
Merge pull request #88 from ebkalderon/fix-end-frame-capture-docs
Browse files Browse the repository at this point in the history
Fix some minor documentation errors
  • Loading branch information
ebkalderon authored May 1, 2020
2 parents 8c606aa + c72282a commit 8d33181
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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`.
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][in-app] documentation.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! 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`.
//! `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 upstream [in-application API][in-app] documentation.
Expand Down
7 changes: 3 additions & 4 deletions src/renderdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ impl RenderDoc<V100> {
/// Removes RenderDoc's injected crash handler from the current process.
///
/// This allows you to provide your own global crash handler with which to handle exceptions,
/// if you so desire.
///
/// After the crash handler has been removed, subsequent calls to this method will do nothing.
/// if you so desire. After the crash handler has been removed, subsequent calls to this method
/// will do nothing.
pub fn unload_crash_handler(&mut self) {
unsafe {
((*self.0).UnloadCrashHandler.unwrap())();
Expand Down Expand Up @@ -432,7 +431,7 @@ impl RenderDoc<V100> {
/// For example, you can specify `null(), null()` for the device to capture on if you have only
/// one device and only one or zero windows, and RenderDoc will capture from that device.
///
/// This function must be paired with a matching `end_frame_capture()` to complete.
/// This function must be paired with a matching `start_frame_capture()` to succeed.
///
/// ```rust,no_run
/// # use renderdoc::{Error, RenderDoc, V100};
Expand Down

0 comments on commit 8d33181

Please sign in to comment.