Enum webrender::render_api::DebugCommand
source · pub enum DebugCommand {
SetFlags(DebugFlags),
SaveCapture(PathBuf, CaptureBits),
LoadCapture(PathBuf, Option<(u32, u32)>, Sender<CapturedDocument>),
StartCaptureSequence(PathBuf, CaptureBits),
StopCaptureSequence,
ClearCaches(ClearCache),
EnableNativeCompositor(bool),
SetBatchingLookback(u32),
InvalidateGpuCache,
SimulateLongSceneBuild(u32),
SetPictureTileSize(Option<DeviceIntSize>),
SetMaximumSurfaceSize(Option<usize>),
}
Expand description
Update of the state of built-in debugging facilities.
Variants§
SetFlags(DebugFlags)
Sets the provided debug flags.
SaveCapture(PathBuf, CaptureBits)
Save a capture of all the documents state.
LoadCapture(PathBuf, Option<(u32, u32)>, Sender<CapturedDocument>)
Load a capture of all the documents state.
StartCaptureSequence(PathBuf, CaptureBits)
Start capturing a sequence of scene/frame changes.
StopCaptureSequence
Stop capturing a sequence of scene/frame changes.
ClearCaches(ClearCache)
Clear cached resources, forcing them to be re-uploaded from templates.
EnableNativeCompositor(bool)
Enable/disable native compositor usage
SetBatchingLookback(u32)
Sets the maximum amount of existing batches to visit before creating a new one.
InvalidateGpuCache
Invalidate GPU cache, forcing the update from the CPU mirror.
SimulateLongSceneBuild(u32)
Causes the scene builder to pause for a given amount of milliseconds each time it processes a transaction.
SetPictureTileSize(Option<DeviceIntSize>)
Set an override tile size to use for picture caches
SetMaximumSurfaceSize(Option<usize>)
Set an override for max off-screen surface size
Trait Implementations§
source§impl Clone for DebugCommand
impl Clone for DebugCommand
source§fn clone(&self) -> DebugCommand
fn clone(&self) -> DebugCommand
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 DebugCommand
impl RefUnwindSafe for DebugCommand
impl Send for DebugCommand
impl Sync for DebugCommand
impl Unpin for DebugCommand
impl UnwindSafe for DebugCommand
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