[−][src]Struct renderdoc::RenderDoc
An instance of the RenderDoc API with baseline version V
.
Methods
impl<V: Version> RenderDoc<V>
[src]
pub fn new() -> Result<Self, String>
[src]
Initializes a new instance of the RenderDoc API.
pub unsafe fn raw_api(&self) -> *mut Entry
[src]
Returns the raw entry point of the API.
Safety
Using the entry point structure directly will discard any thread safety provided by default with this library.
pub unsafe fn shutdown(self)
[src]
Attempts to shut down RenderDoc.
Safety
Note that this will work correctly if done immediately after the dynamic library is loaded, before any API work happens. At that point, RenderDoc will remove its injected hooks and shut down. Behavior is undefined if this is called after any API functions have been called.
impl<V: HasPrevious> RenderDoc<V>
[src]
pub fn downgrade(self) -> RenderDoc<V::Previous>
[src]
Downgrades the current version of RenderDoc to the immediate previous one.
impl RenderDoc<V100>
[src]
pub fn get_api_version(&self) -> (u32, u32, u32)
[src]
Returns the major, minor, and patch version numbers of the RenderDoc API currently in use.
Note that RenderDoc will usually provide a higher API version than the one requested by the user if it's backwards compatible.
Examples
let (major, minor, patch) = renderdoc.get_api_version(); assert_eq!(major, 1u32); assert_eq!(minor, 0u32);
pub fn set_capture_option_f32(&mut self, opt: CaptureOption, val: f32)
[src]
Sets the specified CaptureOption
to the given f32
value.
Panics
This method will panic if the option and/or the value are invalid.
pub fn set_capture_option_u32(&mut self, opt: CaptureOption, val: u32)
[src]
Sets the specified CaptureOption
to the given u32
value.
Panics
This method will panic if the option and/or the value are invalid.
pub fn get_capture_option_f32(&self, opt: CaptureOption) -> f32
[src]
Returns the value of the given CaptureOption
as an f32
value.
Panics
This method will panic if the option is invalid.
pub fn get_capture_option_u32(&self, opt: CaptureOption) -> u32
[src]
Returns the value of the given CaptureOption
as a u32
value.
Panics
This method will panic if the option is invalid.
pub fn set_capture_keys<I: Into<InputButton> + Clone>(&mut self, keys: &[I])
[src]
pub fn set_focus_toggle_keys<I: Into<InputButton> + Clone>(
&mut self,
keys: &[I]
)
[src]
&mut self,
keys: &[I]
)
pub fn unload_crash_handler(&mut self)
[src]
pub fn get_overlay_bits(&self) -> OverlayBits
[src]
pub fn mask_overlay_bits(&mut self, and: OverlayBits, or: OverlayBits)
[src]
pub fn get_log_file_path_template(&self) -> &str
[src]
pub fn set_log_file_path_template<P: AsRef<Path>>(&mut self, path_template: P)
[src]
pub fn get_num_captures(&self) -> u32
[src]
pub fn get_capture(&self, index: u32) -> Option<(String, u64)>
[src]
pub fn trigger_capture(&mut self)
[src]
Captures the next frame from the currently active window and API device.
Data is saved to a capture log file at the location specified via
set_log_file_path_template()
.
pub fn is_remote_access_connected(&self) -> bool
[src]
pub fn launch_replay_ui<'a, O>(
&self,
connect_immediately: bool,
extra_opts: O
) -> Result<u32, ()> where
O: Into<Option<&'a str>>,
[src]
&self,
connect_immediately: bool,
extra_opts: O
) -> Result<u32, ()> where
O: Into<Option<&'a str>>,
pub fn set_active_window<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
pub fn start_frame_capture<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
pub fn is_frame_capturing(&self) -> bool
[src]
Returns whether or not a frame capture is currently ongoing anywhere.
Examples
if renderdoc.is_frame_capturing() { println!("Frames are being captured."); } else { println!("No frame capture is occurring."); }
pub fn end_frame_capture<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
impl RenderDoc<V110>
[src]
pub fn trigger_multi_frame_capture(&mut self, num_frames: u32)
[src]
Captures the next n frames from the currently active window and API device.
Data is saved to a capture log file at the location specified via
set_log_file_path_template()
.
impl RenderDoc<V111>
[src]
pub fn is_remote_access_connected(&self) -> bool
[src]
renamed to is_target_control_connected()
pub fn is_target_control_connected(&self) -> bool
[src]
impl RenderDoc<V112>
[src]
pub fn get_capture_file_path_template(&self) -> &str
[src]
pub fn set_capture_file_path_template<P: AsRef<Path>>(
&mut self,
path_template: P
)
[src]
&mut self,
path_template: P
)
impl RenderDoc<V120>
[src]
pub fn set_capture_file_comments<'a, P, C>(&mut self, path: P, comments: C) where
P: Into<Option<&'a str>>,
C: AsRef<str>,
[src]
P: Into<Option<&'a str>>,
C: AsRef<str>,
impl RenderDoc<V140>
[src]
pub fn discard_frame_capture<D>(&mut self, dev: D, win: WindowHandle) -> bool where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
Ends capturing immediately and discard any data without saving to disk.
Returns true
if the capture was discarded, or false
if no capture is in progress.
Methods from Deref<Target = RenderDoc<V::Previous>>
pub unsafe fn raw_api(&self) -> *mut Entry
[src]
Returns the raw entry point of the API.
Safety
Using the entry point structure directly will discard any thread safety provided by default with this library.
pub fn get_api_version(&self) -> (u32, u32, u32)
[src]
Returns the major, minor, and patch version numbers of the RenderDoc API currently in use.
Note that RenderDoc will usually provide a higher API version than the one requested by the user if it's backwards compatible.
Examples
let (major, minor, patch) = renderdoc.get_api_version(); assert_eq!(major, 1u32); assert_eq!(minor, 0u32);
pub fn set_capture_option_f32(&mut self, opt: CaptureOption, val: f32)
[src]
Sets the specified CaptureOption
to the given f32
value.
Panics
This method will panic if the option and/or the value are invalid.
pub fn set_capture_option_u32(&mut self, opt: CaptureOption, val: u32)
[src]
Sets the specified CaptureOption
to the given u32
value.
Panics
This method will panic if the option and/or the value are invalid.
pub fn get_capture_option_f32(&self, opt: CaptureOption) -> f32
[src]
Returns the value of the given CaptureOption
as an f32
value.
Panics
This method will panic if the option is invalid.
pub fn get_capture_option_u32(&self, opt: CaptureOption) -> u32
[src]
Returns the value of the given CaptureOption
as a u32
value.
Panics
This method will panic if the option is invalid.
pub fn set_capture_keys<I: Into<InputButton> + Clone>(&mut self, keys: &[I])
[src]
pub fn set_focus_toggle_keys<I: Into<InputButton> + Clone>(
&mut self,
keys: &[I]
)
[src]
&mut self,
keys: &[I]
)
pub fn unload_crash_handler(&mut self)
[src]
pub fn get_overlay_bits(&self) -> OverlayBits
[src]
pub fn mask_overlay_bits(&mut self, and: OverlayBits, or: OverlayBits)
[src]
pub fn get_log_file_path_template(&self) -> &str
[src]
pub fn set_log_file_path_template<P: AsRef<Path>>(&mut self, path_template: P)
[src]
pub fn get_num_captures(&self) -> u32
[src]
pub fn get_capture(&self, index: u32) -> Option<(String, u64)>
[src]
pub fn trigger_capture(&mut self)
[src]
Captures the next frame from the currently active window and API device.
Data is saved to a capture log file at the location specified via
set_log_file_path_template()
.
pub fn is_remote_access_connected(&self) -> bool
[src]
pub fn launch_replay_ui<'a, O>(
&self,
connect_immediately: bool,
extra_opts: O
) -> Result<u32, ()> where
O: Into<Option<&'a str>>,
[src]
&self,
connect_immediately: bool,
extra_opts: O
) -> Result<u32, ()> where
O: Into<Option<&'a str>>,
pub fn set_active_window<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
pub fn start_frame_capture<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
pub fn is_frame_capturing(&self) -> bool
[src]
Returns whether or not a frame capture is currently ongoing anywhere.
Examples
if renderdoc.is_frame_capturing() { println!("Frames are being captured."); } else { println!("No frame capture is occurring."); }
pub fn end_frame_capture<D>(&mut self, dev: D, win: WindowHandle) where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
pub fn trigger_multi_frame_capture(&mut self, num_frames: u32)
[src]
Captures the next n frames from the currently active window and API device.
Data is saved to a capture log file at the location specified via
set_log_file_path_template()
.
pub fn is_remote_access_connected(&self) -> bool
[src]
renamed to is_target_control_connected()
pub fn is_target_control_connected(&self) -> bool
[src]
pub fn get_capture_file_path_template(&self) -> &str
[src]
pub fn set_capture_file_path_template<P: AsRef<Path>>(
&mut self,
path_template: P
)
[src]
&mut self,
path_template: P
)
pub fn set_capture_file_comments<'a, P, C>(&mut self, path: P, comments: C) where
P: Into<Option<&'a str>>,
C: AsRef<str>,
[src]
P: Into<Option<&'a str>>,
C: AsRef<str>,
pub fn discard_frame_capture<D>(&mut self, dev: D, win: WindowHandle) -> bool where
D: Into<DevicePointer>,
[src]
D: Into<DevicePointer>,
Ends capturing immediately and discard any data without saving to disk.
Returns true
if the capture was discarded, or false
if no capture is in progress.
Trait Implementations
impl From<RenderDoc<V140>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V140>> for RenderDoc<V110> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V140>> for RenderDoc<V111> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V140>> for RenderDoc<V112> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V140>> for RenderDoc<V120> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V140>> for RenderDoc<V130> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V130>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V130>> for RenderDoc<V110> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V130>> for RenderDoc<V111> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V130>> for RenderDoc<V112> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V130>> for RenderDoc<V120> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V120>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V120>> for RenderDoc<V110> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V120>> for RenderDoc<V111> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V120>> for RenderDoc<V112> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V112>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V112>> for RenderDoc<V110> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V112>> for RenderDoc<V111> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V111>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V111>> for RenderDoc<V110> where
Self: Sized,
[src]
Self: Sized,
impl From<RenderDoc<V110>> for RenderDoc<V100> where
Self: Sized,
[src]
Self: Sized,
impl<V: Eq> Eq for RenderDoc<V>
[src]
impl<V: PartialEq> PartialEq<RenderDoc<V>> for RenderDoc<V>
[src]
impl<V: HasPrevious> Deref for RenderDoc<V>
[src]
type Target = RenderDoc<V::Previous>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<V: Version> Debug for RenderDoc<V>
[src]
impl<V: HasPrevious> DerefMut for RenderDoc<V>
[src]
impl<V: Hash> Hash for RenderDoc<V>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,