[webkit-changes] [WebKit/WebKit] 3cda25: [WGSL] Implement translation of WGSL builtins to MSL
Dan Glastonbury
noreply at github.com
Fri Feb 17 15:27:13 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3cda255e8d24b0b20dd23d812c2fd6412aafdf66
https://github.com/WebKit/WebKit/commit/3cda255e8d24b0b20dd23d812c2fd6412aafdf66
Author: Dan Glastonbury <djg at apple.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WGSL/MetalGenerationTests.cpp
Log Message:
-----------
[WGSL] Implement translation of WGSL builtins to MSL
https://bugs.webkit.org/show_bug.cgi?id=252459
rdar://problem/105582154
Reviewed by Tadeu Zagallo.
Re-write WGSL @builtin attributes to their equivalent in MSL. Add string
comparison tests for transpiled MSL source to ensure the expect attributes are
written.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WGSL/MetalGenerationTests.cpp: Added.
(TestWGSLAPI::translate):
(TestWGSLAPI::TEST):
Canonical link: https://commits.webkit.org/260475@main
More information about the webkit-changes
mailing list