Skip to content

Commit

Permalink
Document supported platforms for RenderStatisticsPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
LeshaInc committed Jul 14, 2023
1 parent e666107 commit 8e2fd35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_render/src/renderer/statistics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const TIMESTAMP_SIZE: u64 = 8;
const PIPELINE_STATISTICS_SIZE: u64 = 40;

/// Enables collecting render pass statistics into [`RenderStatistics`] resource.
///
/// # Supported platforms
/// Timestamp queries and pipeline statistics are currently supported only on Vulkan and DX12.
/// On other platforms (Metal, WebGPU, WebGL2) only CPU time will be recorded.
#[derive(Default)]
pub struct RenderStatisticsPlugin;

Expand Down

0 comments on commit 8e2fd35

Please sign in to comment.