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
Radar WebKit Bug Importer
Comment 1 2023-12-05 12:20:35 PST
Note You need to log in before you can comment on or make changes to this bug.