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

Unexpected override-expression for workgroup_size #5907

Closed
KeKsBoTer opened this issue Jul 4, 2024 · 1 comment
Closed

Unexpected override-expression for workgroup_size #5907

KeKsBoTer opened this issue Jul 4, 2024 · 1 comment

Comments

@KeKsBoTer
Copy link

Description
When setting the workgroup size with an override-expression naga reports an error:

Could not parse WGSL:
error: Unexpected override-expression
  ┌─ test.wgsl:3:26
  │
3 │ @compute @workgroup_size(block_width)
  │                          ^^^^^^^^^^^ see msg


Repro steps

  1. Create a file with this minimal example (taken from the specs):
// Using an pipeline-overridable constant.
@id(42) override block_width = 12u;
@compute @workgroup_size(block_width)
fn shuffler() { }
  1. Validate the shader with naga 0.20.0

Expected vs observed behavior
Naga validates shader without error.

@teoxoy
Copy link
Member

teoxoy commented Jul 5, 2024

Closing as duplicate of #4450.

@teoxoy teoxoy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants