Skip to content

Commit

Permalink
Proper Bench
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Dec 23, 2024
1 parent 793f047 commit 6857fc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions benches/benches/bind_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ impl BindGroupState {
fn run_bench(ctx: &mut Criterion) {
let state = Lazy::new(BindGroupState::new);

if !state
.device_state
.device
.features()
.contains(wgpu::Features::TEXTURE_BINDING_ARRAY)
{
return;
}

let mut group = ctx.benchmark_group("Bind Group Creation");

for count in [5, 50, 500, 5_000, 50_000] {
Expand Down

0 comments on commit 6857fc9

Please sign in to comment.