Bug 264009 - [WebGPU] MSL compilation error opening https://kishimisu.github.io/WebGPU-Fluid-Simulation/
Summary: [WebGPU] MSL compilation error opening https://kishimisu.github.io/WebGPU-Flu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tadeu Zagallo
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-31 15:42 PDT by Mike Wyrzykowski
Modified: 2023-11-02 01:44 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-10-31 15:42:08 PDT
[WebGPU] MSL compilation error opening ening https://kishimisu.github.io/WebGPU-Fluid-Simulation/

MSL compilation error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:78:16: error: cannot initialize return object of type 'vec<float, [...]>' with an rvalue of type 'vec<int, [...]>'
        return vec<int, 3>(0, 0, 0);
               ^~~~~~~~~~~~~~~~~~~~

Generated metal is here:

vec<float, 3> function2(vec<float, 3> parameter2, const device array<float, 1>& global1, const device array<float, 1>& global2, const device array<float, 1>& global0, const constant type0& global3)
{
...
        return vec<int, 3>(0, 0, 0);
Comment 1 Radar WebKit Bug Importer 2023-10-31 15:49:36 PDT
<rdar://problem/117768138>
Comment 2 Tadeu Zagallo 2023-11-01 10:13:29 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19842
Comment 3 EWS 2023-11-02 01:44:44 PDT
Committed 270104@main (67be1e088340): <https://commits.webkit.org/270104@main>

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