Skip to content

Commit

Permalink
Mind the Limits
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Dec 13, 2024
1 parent 5c39447 commit 0a2feee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions benches/benches/bind_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ fn run_bench(ctx: &mut Criterion) {
let mut group = ctx.benchmark_group("Bind Group Creation");

for count in [5, 50, 500, 5_000, 50_000] {
if count
> state
.device_state
.device
.limits()
.max_sampled_textures_per_shader_stage
{
continue;
}

let bind_group_layout =
state
.device_state
Expand Down

0 comments on commit 0a2feee

Please sign in to comment.