Skip to content

Conversation

@jimblandy
Copy link
Member

When deriving a bind group layout for a pipeline, bother to enforce wgpu_types::Limits::max_bindings_per_bind_group. Move the check:

  • from wgpu_core::device::bgl::EntryMap::from_entries, which is only used for explicit bind group creation

  • into wgpu_core::device::Device::create_bind_group_layout, which is used for all bind group layout creation.

@jimblandy jimblandy added type: bug Something isn't working area: validation Issues related to validation, diagnostics, and error handling labels Oct 9, 2025
@ErichDonGubler ErichDonGubler self-assigned this Oct 10, 2025
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A CHANGELOG entry might be good for this? I'm not set on that, though.

When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
@jimblandy jimblandy force-pushed the check-derived-bind-group-layout-entry-indices branch from c6cda85 to 9eebc20 Compare October 10, 2025 16:27
@jimblandy jimblandy enabled auto-merge (squash) October 10, 2025 16:28
@jimblandy jimblandy merged commit 1cbebdc into gfx-rs:trunk Oct 10, 2025
41 checks passed
sharmajai pushed a commit to sharmajai/wgpu that referenced this pull request Oct 12, 2025
)

When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
ErichDonGubler pushed a commit that referenced this pull request Oct 14, 2025
When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Oct 14, 2025
…755052b24c1a78c r=#webgpu-reviewers!

Re-vendor backports of [wgpu#8316](gfx-rs/wgpu#8316) and [wgpu#8325](gfx-rs/wgpu#8325) to implement uplifts for bug 1988488 and bug 1986431, respectively, to stable.

Differential Revision: https://phabricator.services.mozilla.com/D268620
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Oct 15, 2025
…755052b24c1a78c r=#webgpu-reviewers!

Re-vendor backports of [wgpu#8316](gfx-rs/wgpu#8316) and [wgpu#8325](gfx-rs/wgpu#8325) to implement uplifts for bug 1988488 and bug 1986431, respectively, to stable.

Differential Revision: https://phabricator.services.mozilla.com/D268620
ErichDonGubler pushed a commit to erichdongubler-mozilla/wgpu that referenced this pull request Oct 21, 2025
)

When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: validation Issues related to validation, diagnostics, and error handling type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants