Struct wgpu_profiler::scope::Scope [−][src]
pub struct Scope<'a, W: ProfilerCommandRecorder> { /* fields omitted */ }
Scope that takes a (mutable) reference to the encoder/pass. Calls end_scope on drop.
Implementations
impl<'a, W: ProfilerCommandRecorder> Scope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> Scope<'a, W>
[src]impl<'a> Scope<'a, CommandEncoder>
[src]
impl<'a> Scope<'a, CommandEncoder>
[src]pub fn scoped_render_pass<'b>(
&'b mut self,
label: &str,
device: &Device,
pass_descriptor: &RenderPassDescriptor<'b, '_>
) -> OwningScope<'b, RenderPass<'b>>
[src]
&'b mut self,
label: &str,
device: &Device,
pass_descriptor: &RenderPassDescriptor<'b, '_>
) -> OwningScope<'b, RenderPass<'b>>
Start a render pass wrapped in a OwningScope.
pub fn scoped_compute_pass(
&mut self,
label: &str,
device: &Device,
pass_descriptor: &ComputePassDescriptor<'_>
) -> OwningScope<'_, ComputePass<'_>>
[src]
&mut self,
label: &str,
device: &Device,
pass_descriptor: &ComputePassDescriptor<'_>
) -> OwningScope<'_, ComputePass<'_>>
Start a compute pass wrapped in a OwningScope.
Trait Implementations
impl<'a, W: ProfilerCommandRecorder> Deref for Scope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> Deref for Scope<'a, W>
[src]impl<'a, W: ProfilerCommandRecorder> DerefMut for Scope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> DerefMut for Scope<'a, W>
[src]Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for Scope<'a, W>
impl<'a, W> !RefUnwindSafe for Scope<'a, W>
impl<'a, W> !UnwindSafe for Scope<'a, W>
impl<'a, W> !UnwindSafe for Scope<'a, W>