pub struct GpuProfilerEditor {Show 26 fields
pub gpu_caps: GpuCapabilities,
pub frame_captures: Vec<FrameCapture>,
pub selected_frame: Option<usize>,
pub selected_pass: Option<usize>,
pub frame_time_graph: FrameTimeGraph,
pub gpu_time_graph: FrameTimeGraph,
pub allocations: Vec<GpuAllocation>,
pub memory_stats: GpuMemoryStats,
pub shader_stats: Vec<ShaderCompileStat>,
pub perf_counters: Vec<PerfCounter>,
pub barrier_records: Vec<BarrierRecord>,
pub resource_tracker: ResourceStateTracker,
pub active_panel: ProfilerPanel,
pub capturing: bool,
pub capture_frame_count: u32,
pub pause_on_capture: bool,
pub heatmap_mode: HeatmapMode,
pub show_heatmap: bool,
pub frame_index: u64,
pub paused: bool,
pub zoom_range: (f32, f32),
pub timeline_scroll: f32,
pub search_filter: String,
pub expanded_passes: HashSet<String>,
pub show_redundant_barriers: bool,
pub sort_shaders_by_instructions: bool,
}Fields§
§gpu_caps: GpuCapabilities§frame_captures: Vec<FrameCapture>§selected_frame: Option<usize>§selected_pass: Option<usize>§frame_time_graph: FrameTimeGraph§gpu_time_graph: FrameTimeGraph§allocations: Vec<GpuAllocation>§memory_stats: GpuMemoryStats§shader_stats: Vec<ShaderCompileStat>§perf_counters: Vec<PerfCounter>§barrier_records: Vec<BarrierRecord>§resource_tracker: ResourceStateTracker§active_panel: ProfilerPanel§capturing: bool§capture_frame_count: u32§pause_on_capture: bool§heatmap_mode: HeatmapMode§show_heatmap: bool§frame_index: u64§paused: bool§zoom_range: (f32, f32)§timeline_scroll: f32§search_filter: String§expanded_passes: HashSet<String>§show_redundant_barriers: bool§sort_shaders_by_instructions: boolImplementations§
Source§impl GpuProfilerEditor
impl GpuProfilerEditor
pub fn selected_frame_capture(&self) -> Option<&FrameCapture>
pub fn push_frame(&mut self, cap: FrameCapture)
pub fn begin_capture(&mut self)
pub fn end_capture(&mut self)
pub fn frame_avg_ms(&self) -> f32
pub fn gpu_avg_ms(&self) -> f32
pub fn avg_fps(&self) -> f32
pub fn memory_device_local_mb(&self) -> f32
pub fn memory_device_local_total_mb(&self) -> f32
pub fn vram_usage_pct(&self) -> f32
pub fn top_shaders_by_instructions(&self, n: usize) -> Vec<&ShaderCompileStat>
pub fn counters_by_status(&self, status: CounterStatus) -> Vec<&PerfCounter>
pub fn has_critical_counters(&self) -> bool
pub fn has_warning_counters(&self) -> bool
pub fn simulate_tick(&mut self, dt: f32)
pub fn pass_timeline_rects( &self, timeline_width: f32, ) -> Vec<(String, f32, f32, u32)>
pub fn timeline_zoom_in(&mut self)
pub fn timeline_zoom_out(&mut self)
pub fn toggle_pass_expand(&mut self, name: &str)
pub fn filtered_passes(&self) -> Vec<&RenderPassCapture>
pub fn generate_summary_report(&self) -> String
Trait Implementations§
Source§impl Debug for GpuProfilerEditor
impl Debug for GpuProfilerEditor
Auto Trait Implementations§
impl Freeze for GpuProfilerEditor
impl RefUnwindSafe for GpuProfilerEditor
impl Send for GpuProfilerEditor
impl Sync for GpuProfilerEditor
impl Unpin for GpuProfilerEditor
impl UnsafeUnpin for GpuProfilerEditor
impl UnwindSafe for GpuProfilerEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.