Skip to content

Fix binding_arrays_are_usable check - #25261

Open
beicause wants to merge 1 commit into
bevyengine:mainfrom
beicause:fix_binding_arrays_are_usable
Open

Fix binding_arrays_are_usable check#25261
beicause wants to merge 1 commit into
bevyengine:mainfrom
beicause:fix_binding_arrays_are_usable

Conversation

@beicause

@beicause beicause commented Aug 2, 2026

Copy link
Copy Markdown
Member

Objective

binding_arrays_are_usable checks unrelated max_storage_textures_per_shader_stage limit (#10268), possibly because wgpu did not have relevant limits two years ago.

Solution

Check max_binding_array_elements_per_shader_stage and max_binding_array_sampler_elements_per_shader_stage.

Testing

None.

@JMS55 JMS55 added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 2, 2026
@JMS55 JMS55 added this to the 0.19.1 milestone Aug 2, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Aug 2, 2026
/// unimplemented in the GLSL backend of Naga. Therefore, we disable binding
/// arrays if the `shader_format_glsl` feature is present.
///
/// 2. If there aren't enough texture bindings available to accommodate all the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably need to update this comment with your changes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure what needs to be updated; the comment still seems applicable.

@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

3 participants