WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
265895
[WGSL] Error compiling WGSL shader which uses override as an array size
https://bugs.webkit.org/show_bug.cgi?id=265895
Summary
[WGSL] Error compiling WGSL shader which uses override as an array size
Mike Wyrzykowski
Reported
2023-12-05 12:19:40 PST
The following compute shader: override a: u32; override b: u32; var<workgroup> vec4_data: array<vec4<f32>, a>; @compute @workgroup_size(1) fn main() { _ = vec4_data[0]; } generates the error: 1 error generated while compiling the shader: 4:45: array count must evaluate to a constant integer expression or override variable it would seem that 'a' should be able to be used in the array declaration.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-12-05 12:20:35 PST
<
rdar://problem/119207413
>
Mike Wyrzykowski
Comment 2
2023-12-05 12:22:46 PST
This was observed running
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,compute_pipeline:overrides,workgroup_size,limits,workgroup_storage_size:isAsync=false
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug