Skip to content

Commit

Permalink
Merge pull request #19 from Wumpf/fix-mixup-of-pass-encoder-features
Browse files Browse the repository at this point in the history
fix enable_pass_timer/enable_encoder_timer checking wrong features
  • Loading branch information
Wumpf authored Sep 15, 2022
2 parents d83c396 + 5b269fa commit d2bfbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ impl GpuProfiler {
pub fn new(max_num_pending_frames: usize, timestamp_period: f32, active_features: wgpu::Features) -> Self {
assert!(max_num_pending_frames > 0);
GpuProfiler {
enable_pass_timer: active_features.contains(wgpu::Features::TIMESTAMP_QUERY),
enable_encoder_timer: active_features.contains(wgpu::Features::WRITE_TIMESTAMP_INSIDE_PASSES),
enable_pass_timer: active_features.contains(wgpu::Features::WRITE_TIMESTAMP_INSIDE_PASSES),
enable_encoder_timer: active_features.contains(wgpu::Features::TIMESTAMP_QUERY),
enable_debug_marker: true,

unused_pools: Vec::new(),
Expand Down

0 comments on commit d2bfbdf

Please sign in to comment.