Struct webrender::capture::CaptureConfig
source · pub struct CaptureConfig {
pub root: PathBuf,
pub bits: CaptureBits,
pub scene_id: u32,
pub frame_id: u32,
pub resource_id: u32,
pretty: PrettyConfig,
}
Fields§
§root: PathBuf
§bits: CaptureBits
§scene_id: u32
Scene sequence ID when capturing multiple frames. Zero for a single frame capture.
frame_id: u32
Frame sequence ID when capturing multiple frames. Zero for a single frame capture.
resource_id: u32
Resource sequence ID when capturing multiple frames. Zero for a single frame capture.
pretty: PrettyConfig
Implementations§
source§impl CaptureConfig
impl CaptureConfig
pub fn new(root: PathBuf, bits: CaptureBits) -> Self
pub fn prepare_scene(&mut self)
pub fn prepare_frame(&mut self)
pub fn prepare_resource(&mut self)
pub fn scene_root(&self) -> PathBuf
pub fn frame_root(&self) -> PathBuf
pub fn resource_root(&self) -> PathBuf
pub fn serialize_for_scene<T, P>(&self, data: &T, name: P)
pub fn serialize_for_frame<T, P>(&self, data: &T, name: P)
pub fn serialize_for_resource<T, P>(&self, data: &T, name: P)
pub fn file_path_for_frame<P>(&self, name: P, ext: &str) -> PathBuf
fn serialize<T, P>(&self, data: &T, path: PathBuf, name: P)
fn serialize_tree<T, P>(data: &T, root: PathBuf, name: P)
pub fn serialize_tree_for_frame<T, P>(&self, data: &T, name: P)
Trait Implementations§
source§impl Clone for CaptureConfig
impl Clone for CaptureConfig
source§fn clone(&self) -> CaptureConfig
fn clone(&self) -> CaptureConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CaptureConfig
impl RefUnwindSafe for CaptureConfig
impl Send for CaptureConfig
impl Sync for CaptureConfig
impl Unpin for CaptureConfig
impl UnwindSafe for CaptureConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more