Bug 264143

Summary: [WebGPU] Error opening https://threejs.org/examples/?q=webgpu#webgpu_backdrop_area
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: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
ThreeJS WGSL source which generates the MSL error none

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.