Skip to main content

ProfilerCommandRecorder

Trait ProfilerCommandRecorder 

Source
pub trait ProfilerCommandRecorder {
    // Required methods
    fn is_pass(&self) -> bool;
    fn write_timestamp(&mut self, query_set: &QuerySet, query_index: u32);
    fn push_debug_group(&mut self, label: &str);
    fn pop_debug_group(&mut self);
}
Expand description

Trait for exposing the methods of wgpu::CommandEncoder, wgpu::RenderPass and wgpu::ComputePass that are used by the profiler.

Required Methods§

Source

fn is_pass(&self) -> bool

Returns true if it’s a pass or false if it’s an encoder

Source

fn write_timestamp(&mut self, query_set: &QuerySet, query_index: u32)

Source

fn push_debug_group(&mut self, label: &str)

Source

fn pop_debug_group(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ProfilerCommandRecorder for CommandEncoder

Source§

fn is_pass(&self) -> bool

Source§

fn write_timestamp(&mut self, query_set: &QuerySet, query_index: u32)

Source§

fn push_debug_group(&mut self, label: &str)

Source§

fn pop_debug_group(&mut self)

Source§

impl<'a> ProfilerCommandRecorder for ComputePass<'a>

Source§

fn is_pass(&self) -> bool

Source§

fn write_timestamp(&mut self, query_set: &QuerySet, query_index: u32)

Source§

fn push_debug_group(&mut self, label: &str)

Source§

fn pop_debug_group(&mut self)

Source§

impl<'a> ProfilerCommandRecorder for RenderPass<'a>

Source§

fn is_pass(&self) -> bool

Source§

fn write_timestamp(&mut self, query_set: &QuerySet, query_index: u32)

Source§

fn push_debug_group(&mut self, label: &str)

Source§

fn pop_debug_group(&mut self)

Implementors§