Skip to content

Commit 6857fc9

Browse files
committed
Proper Bench
1 parent 793f047 commit 6857fc9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

benches/benches/bind_groups.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ impl BindGroupState {
6262
fn run_bench(ctx: &mut Criterion) {
6363
let state = Lazy::new(BindGroupState::new);
6464

65+
if !state
66+
.device_state
67+
.device
68+
.features()
69+
.contains(wgpu::Features::TEXTURE_BINDING_ARRAY)
70+
{
71+
return;
72+
}
73+
6574
let mut group = ctx.benchmark_group("Bind Group Creation");
6675

6776
for count in [5, 50, 500, 5_000, 50_000] {

0 commit comments

Comments
 (0)