Skip to content

[core] Use minimum_binding_size terminology in validation. - #9988

Merged
ErichDonGubler merged 2 commits into
gfx-rs:trunkfrom
jimblandy:core-rename-resourcetype-buffer-minimum-binding-size
Aug 3, 2026
Merged

[core] Use minimum_binding_size terminology in validation.#9988
ErichDonGubler merged 2 commits into
gfx-rs:trunkfrom
jimblandy:core-rename-resourcetype-buffer-minimum-binding-size

Conversation

@jimblandy

@jimblandy jimblandy commented Aug 2, 2026

Copy link
Copy Markdown
Member

In wgpu_core::validation, rename ResourceType::Buffer::size to minimum_binding_size, for clarity. Adjust use sites accordingly.

In wgpu_core::validation::Interface::check_stage, rename the shader_binding_sizes argument to minimum_binding_sizes. We already know from context that we're talking about a shader. This is not a table of actual binding sizes, it is a table of the minimum required binding sizes, given the module's resource interface.

This pull request makes no substantive changes to the code.

In `wgpu_core::validation`, rename `ResourceType::Buffer::size` to
`minimum_binding_size`, for clarity. Adjust use sites accordingly.
@jimblandy jimblandy changed the title [core] Rename size to minimum_binding_size in validation. [core] Use minimum_binding_size terminology in validation. Aug 2, 2026
In `wgpu_core::validation::Interface::check_stage`, rename the
`shader_binding_sizes` argument to `minimum_binding_sizes`. We already
know from context that we're talking about a shader. This is not a
table of actual binding sizes, it is a table of the minimum required
binding sizes, given the module's resource interface.
@jimblandy
jimblandy force-pushed the core-rename-resourcetype-buffer-minimum-binding-size branch from 5200ff5 to b631851 Compare August 2, 2026 01:14
@ErichDonGubler ErichDonGubler self-assigned this Aug 3, 2026
@ErichDonGubler ErichDonGubler added area: validation Issues related to validation, diagnostics, and error handling kind: refactor Making existing function faster or nicer labels Aug 3, 2026
@ErichDonGubler
ErichDonGubler merged commit b991e60 into gfx-rs:trunk Aug 3, 2026
59 checks passed
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 kind: refactor Making existing function faster or nicer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants