Bug 262076

Summary: [WGSL] "while elementIndex != 0xFFFFFFFFu && numLayers < maxLayers" does not compile
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   

Description Mike Wyrzykowski 2023-09-25 15:20:23 PDT
Open A-Buffers: https://webgpu.github.io/webgpu-samples/samples/A-buffer#composite.wsgl

Note the source in composite.wsgl:
while elementIndex != 0xFFFFFFFFu && numLayers < maxLayers {

Shader fails compilation with the error:
55:2: Not a valid statement
Comment 1 Radar WebKit Bug Importer 2023-09-25 15:21:37 PDT
<rdar://problem/116018755>