From 0a2feee976cee258f37e9422b9efd0d1d351988f Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Fri, 13 Dec 2024 18:42:16 -0500 Subject: [PATCH] Mind the Limits --- benches/benches/bind_groups.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/benches/benches/bind_groups.rs b/benches/benches/bind_groups.rs index 280b073612..35da49cccb 100644 --- a/benches/benches/bind_groups.rs +++ b/benches/benches/bind_groups.rs @@ -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