Bug 264141 - [WebGPU] error: use of undeclared identifier 'inverseSqrt' opening https://threejs.org/examples/?q=webgpu#webgpu_clearcoat
Summary: [WebGPU] error: use of undeclared identifier 'inverseSqrt' opening https://th...
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-02 23:37 PDT by Mike Wyrzykowski
Modified: 2023-11-06 02:08 PST (History)
1 user (show)

See Also:


Attachments
ThreeJS wgsl source (18.55 KB, text/plain)
2023-11-02 23:37 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-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.