Bug 255619

Summary: [WGSL] Parentheses missing in expression
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Mike Wyrzykowski 2023-04-18 12:10:11 PDT
Load https://webgpu.github.io/webgpu-samples/samples/rotatingCube

WGSL source: 0.5 * (position + vec4(1.0, 1.0, 1.0, 1.0));

Actual generated metal: local2.fragPosition = 0.5 * local1 + vec<float, 4>(1, 1, 1, 1);

Expected generated metal: local2.fragPosition = 0.5 * (local1 + vec<float, 4>(1, 1, 1, 1));
Comment 1 Radar WebKit Bug Importer 2023-04-18 12:10:40 PDT
<rdar://problem/108215519>
Comment 2 Mike Wyrzykowski 2023-04-18 12:29:07 PDT

*** This bug has been marked as a duplicate of bug 255517 ***