Struct wgpu_profiler::scope::Scope
source · [−]pub struct Scope<'a, W: ProfilerCommandRecorder> { /* private fields */ }Expand description
Scope that takes a (mutable) reference to the encoder/pass. Calls end_scope on drop.
Implementations
sourceimpl<'a, W: ProfilerCommandRecorder> Scope<'a, W>
impl<'a, W: ProfilerCommandRecorder> Scope<'a, W>
sourceimpl<'a> Scope<'a, CommandEncoder>
impl<'a> Scope<'a, CommandEncoder>
sourcepub fn scoped_render_pass<'b>(
&'b mut self,
label: &str,
device: &Device,
pass_descriptor: &RenderPassDescriptor<'b, '_>
) -> OwningScope<'b, RenderPass<'b>>
pub fn scoped_render_pass<'b>(
&'b mut self,
label: &str,
device: &Device,
pass_descriptor: &RenderPassDescriptor<'b, '_>
) -> OwningScope<'b, RenderPass<'b>>
Start a render pass wrapped in a OwningScope.
sourcepub fn scoped_compute_pass(
&mut self,
label: &str,
device: &Device,
pass_descriptor: &ComputePassDescriptor<'_>
) -> OwningScope<'_, ComputePass<'_>>
pub fn scoped_compute_pass(
&mut self,
label: &str,
device: &Device,
pass_descriptor: &ComputePassDescriptor<'_>
) -> OwningScope<'_, ComputePass<'_>>
Start a compute pass wrapped in a OwningScope.
Trait Implementations
sourceimpl<'a, W: ProfilerCommandRecorder> Deref for Scope<'a, W>
impl<'a, W: ProfilerCommandRecorder> Deref for Scope<'a, W>
sourceimpl<'a, W: ProfilerCommandRecorder> DerefMut for Scope<'a, W>
impl<'a, W: ProfilerCommandRecorder> DerefMut for Scope<'a, W>
Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for Scope<'a, W>
impl<'a, W> Send for Scope<'a, W> where
W: Send,
impl<'a, W> Sync for Scope<'a, W> where
W: Sync,
impl<'a, W> Unpin for Scope<'a, W>
impl<'a, W> !UnwindSafe for Scope<'a, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more