Bug 255619 - [WGSL] Parentheses missing in expression
Summary: [WGSL] Parentheses missing in expression
Status: RESOLVED DUPLICATE of bug 255517
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-04-18 12:10 PDT by Mike Wyrzykowski
Modified: 2023-04-18 12:29 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-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 ***