Bug 264141

Summary: [WebGPU] error: use of undeclared identifier 'inverseSqrt' opening https://threejs.org/examples/?q=webgpu#webgpu_clearcoat
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 none

Description Mike Wyrzykowski 2023-11-02 23:37:35 PDT
Created attachment 468466 [details]
ThreeJS wgsl source

[WebGPU] error: use of undeclared identifier 'inverseSqrt' opening https://threejs.org/examples/?q=webgpu#webgpu_clearcoat

MSL compilation error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:251:51: error: use of undeclared identifier 'inverseSqrt'
    local13 = (((float(parameter14) * 2.) - 1.) * inverseSqrt(max(dot(local8, local8), dot(local12, local12))));
                                                  ^
" UserInfo={NSLocalizedDescription=program_source:251:51: error: use of undeclared identifier 'inverseSqrt'
    local13 = (((float(parameter14) * 2.) - 1.) * inverseSqrt(max(dot(local8, local8), dot(local12, local12))));
Comment 1 Radar WebKit Bug Importer 2023-11-02 23:37:52 PDT
<rdar://problem/117892734>
Comment 2 Tadeu Zagallo 2023-11-03 08:06:56 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19952
Comment 3 EWS 2023-11-06 02:07:58 PST
Committed 270260@main (f1a3f7b6d47e): <https://commits.webkit.org/270260@main>

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