Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading create_render_pipeline error message when hitting bind group limit #2526

Closed
Oberdiah opened this issue Mar 7, 2022 · 0 comments
Closed
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen. type: enhancement New feature or request

Comments

@Oberdiah
Copy link

Oberdiah commented Mar 7, 2022

Description
When calling create_render_pipeline with a shader that goes over the allowed maximum bind groups as set by DeviceDescriptor::limits::max_bind_groups (by default 4), the returned error message is quite misleading:

error matching FRAGMENT shader requirements against the pipeline
shader global ResourceBinding { group: 4, binding: 0 } is not available in the layout pipeline layout
binding is missing from the pipeline layout

The error should mention hitting the limit and possibly suggest raising it (if the new value would be less than the adapter limit)

@kvark kvark added area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen. type: enhancement New feature or request labels Mar 7, 2022
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 help required We need community help to make this happen. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants