Bug 264143 - [WebGPU] Error opening https://threejs.org/examples/?q=webgpu#webgpu_backdrop_area
Summary: [WebGPU] Error opening https://threejs.org/examples/?q=webgpu#webgpu_backdrop...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tadeu Zagallo
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-03 00:01 PDT by Mike Wyrzykowski
Modified: 2023-11-06 02:06 PST (History)
1 user (show)

See Also:


Attachments
ThreeJS WGSL source which generates the MSL error (18.41 KB, text/plain)
2023-11-03 00:01 PDT, Mike Wyrzykowski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wyrzykowski 2023-11-03 00:01:52 PDT
Created attachment 468467 [details]
ThreeJS WGSL source which generates the MSL error

[WebGPU] Error opening https://threejs.org/examples/?q=webgpu#webgpu_backdrop_area

MSL compilation error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:115:14: error: call to 'distance' is ambiguous
    local5 = distance(((((global4.field3 * global4.field4) / (((global4.field4 - global4.field3) * local4) - global4.field4)) + global4.field3) / (global4.field3 - global4.field4)), ((parameter3.xyz.z + global4.field3) / (global4.field3 - global4.field4)));


Attaching WGSL source
Comment 1 Radar WebKit Bug Importer 2023-11-03 00:02:05 PDT
<rdar://problem/117893591>
Comment 2 Tadeu Zagallo 2023-11-03 08:09:30 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19953
Comment 3 EWS 2023-11-06 02:06:13 PST
Committed 270259@main (8d5247e667b6): <https://commits.webkit.org/270259@main>

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