Struct wgpu_profiler::scope::OwningScope [−][src]
pub struct OwningScope<'a, W: ProfilerCommandRecorder> { /* fields omitted */ }
Scope that takes ownership of the encoder/pass. Calls end_scope on drop.
Implementations
impl<'a, W: ProfilerCommandRecorder> OwningScope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> OwningScope<'a, W>
[src]impl<'a> OwningScope<'a, CommandEncoder>
[src]
impl<'a> OwningScope<'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 an 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 OwningScope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> Deref for OwningScope<'a, W>
[src]impl<'a, W: ProfilerCommandRecorder> DerefMut for OwningScope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> DerefMut for OwningScope<'a, W>
[src]impl<'a, W: ProfilerCommandRecorder> Drop for OwningScope<'a, W>
[src]
impl<'a, W: ProfilerCommandRecorder> Drop for OwningScope<'a, W>
[src]Auto Trait Implementations
impl<'a, W> !RefUnwindSafe for OwningScope<'a, W>
impl<'a, W> !RefUnwindSafe for OwningScope<'a, W>
impl<'a, W> !Send for OwningScope<'a, W>
impl<'a, W> !Send for OwningScope<'a, W>
impl<'a, W> !Sync for OwningScope<'a, W>
impl<'a, W> !Sync for OwningScope<'a, W>
impl<'a, W> Unpin for OwningScope<'a, W> where
W: Unpin,
impl<'a, W> Unpin for OwningScope<'a, W> where
W: Unpin,
impl<'a, W> !UnwindSafe for OwningScope<'a, W>
impl<'a, W> !UnwindSafe for OwningScope<'a, W>