From 4ab9dbea8f7efbad518c3e39db07c30177a1a6af Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Thu, 20 Jul 2023 16:02:59 +0200 Subject: [PATCH] Update max_bindings_per_bind_group from 640 to 1000 to reflect spec (#3942) * Update max_bindings_per_bind_group from 640 to 1000 to reflect change in the spec. * Add changelog entry. --- CHANGELOG.md | 3 ++- wgpu-types/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a234aa30c..77ebc11953 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,7 +70,8 @@ Bottom level categories: - Flesh out docs. for `AdapterInfo::{device,vendor}` by @ErichDonGubler in [#3763](https://github.com/gfx-rs/wgpu/pull/3763). - Spell out which sizes are in bytes. By @jimblandy in [#3773](https://github.com/gfx-rs/wgpu/pull/3773). - On Web, types don't implement `Send` or `Sync` anymore. By @daxpedda in [#3691](https://github.com/gfx-rs/wgpu/pull/3691) -- Validate that `descriptor.usage` is not empty in `create_buffer` by @nical in [https://github.com/gfx-rs/wgpu/pull/#3928](3928) +- Validate that `descriptor.usage` is not empty in `create_buffer` by @nical in [#3928](https://github.com/gfx-rs/wgpu/pull/3928) +- Update `max_bindings_per_bind_group` limit to reflect spec changes by @ErichDonGubler and @nical in [#3943](https://github.com/gfx-rs/wgpu/pull/3943) [#3942](https://github.com/gfx-rs/wgpu/pull/3942) ### Bug Fixes diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index abe28d620a..79bb0f690d 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -968,7 +968,7 @@ impl Limits { max_texture_dimension_3d: 256, max_texture_array_layers: 256, max_bind_groups: 4, - max_bindings_per_bind_group: 640, + max_bindings_per_bind_group: 1000, max_dynamic_uniform_buffers_per_pipeline_layout: 8, max_dynamic_storage_buffers_per_pipeline_layout: 4, max_sampled_textures_per_shader_stage: 16,