Bug 299363
| Summary: | override silently breaks WGSL shaders and prevents shader compilation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | douglas.lilliequist |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Major | CC: | mwyrzykowski, tzagallo, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 26 | ||
| Hardware: | All | ||
| OS: | macOS 26 | ||
douglas.lilliequist
Recently discovered that the following syntax:
override threadCountX: u32 = 4;
prevents the given shader to compile in Safari 26. Works perfectly fine on Google Chrome.
The solution I found was to simply declare the given override to a const...
const threadCountX: u32 = 4;
which is OK, except it would be great to allow the developer to send their own constants for setting thread group sizes etc. without breaking your app.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** Bug 299364 has been marked as a duplicate of this bug. ***
Radar WebKit Bug Importer
<rdar://problem/161182645>
Mike Wyrzykowski
potentially the same as related to https://gpuweb.github.io/cts/standalone/?debug=1&q=webgpu:api,operation,compute_pipeline,overrides:computed:* which is tracked by https://bugs.webkit.org/show_bug.cgi?id=275010
Mike Wyrzykowski
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,operation,compute_pipeline,overrides:workgroup_size:* is similar but doesn't use default values
Mike Wyrzykowski
It looks like we are failing when default values are used in overrides passed to `@workgroupSize`
Tadeu Zagallo
I'm marking it as a dupe of https://bugs.webkit.org/show_bug.cgi?id=275010, but please let us know if the issue isn't fixed.
*** This bug has been marked as a duplicate of bug 275010 ***