Bug 262076 - [WGSL] "while elementIndex != 0xFFFFFFFFu && numLayers < maxLayers" does not compile
Summary: [WGSL] "while elementIndex != 0xFFFFFFFFu && numLayers < maxLayers" does not ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-25 15:20 PDT by Mike Wyrzykowski
Modified: 2023-09-25 15:21 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>