Bug 265341

Summary: [WebGPU] 'alias' not supported (https://www.w3.org/TR/WGSL/#type-aliases) / error compiling shader opening https://playground.babylonjs.com/#N96NXC#106
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Tadeu Zagallo <tzagallo>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WGSL source generating error none

Description Mike Wyrzykowski 2023-11-25 18:52:17 PST
Created attachment 468754 [details]
WGSL source generating error

[WebGPU] Error compiling shader opening https://playground.babylonjs.com/#N96NXC#106
(select 'WebGPU' from the top-right if not already selected)

It is due to 'alias' not being supported. 'alias' appears to be essentially like 'using' in C++

https://www.w3.org/TR/WGSL/#type-aliases

WGSL source attached.
Comment 1 Radar WebKit Bug Importer 2023-11-25 18:52:32 PST
<rdar://problem/118796398>
Comment 2 Tadeu Zagallo 2023-12-08 09:28:28 PST
Pull request: https://github.com/WebKit/WebKit/pull/21509
Comment 3 EWS 2023-12-11 07:44:52 PST
Committed 271876@main (81d65a5b16f3): <https://commits.webkit.org/271876@main>

Reviewed commits have been landed. Closing PR #21509 and removing active labels.