Bug 265895

Summary: [WGSL] Error compiling WGSL shader which uses override as an array size
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.