[webkit-changes] [WebKit/WebKit] 8375c9: [WGSL] Add a tiny DSL for declaring built-in types
Tadeu Zagallo
noreply at github.com
Fri Feb 17 01:10:30 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8375c946e46d51914c60cf86e060b1d6e8765d65
https://github.com/WebKit/WebKit/commit/8375c946e46d51914c60cf86e060b1d6e8765d65
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M Source/WebGPU/WGSL/Overload.h
M Source/WebGPU/WGSL/TypeCheck.cpp
A Source/WebGPU/WGSL/TypeDeclarations.js
A Source/WebGPU/WGSL/generator/main.js
M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj
Log Message:
-----------
[WGSL] Add a tiny DSL for declaring built-in types
https://bugs.webkit.org/show_bug.cgi?id=252251
rdar://105457268
Reviewed by Myles C. Maxfield.
Initializing all the built-in types in C++ is quite verbose, so this patch adds a tiny
embedded DSL in JavaScript for declaring such types.
* Source/WebGPU/WGSL/Overload.h:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::TypeChecker):
* Source/WebGPU/WGSL/TypeDeclarations.rb: Added.
* Source/WebGPU/WGSL/generator/main.rb: Added.
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/260433@main
More information about the webkit-changes
mailing list