[webkit-changes] [WebKit/WebKit] acbaa4: [WGSL] Add support for private global variables
Tadeu Zagallo
noreply at github.com
Mon May 22 00:16:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: acbaa4f2a24bdd437164bcbb020e72ee27ea2932
https://github.com/WebKit/WebKit/commit/acbaa4f2a24bdd437164bcbb020e72ee27ea2932
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-05-22 (Mon, 22 May 2023)
Changed paths:
M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
Log Message:
-----------
[WGSL] Add support for private global variables
https://bugs.webkit.org/show_bug.cgi?id=257034
rdar://109565923
Reviewed by Myles C. Maxfield.
Previously we only support global resources, this is the first iteration for
supporting global variables in the `private` address space.
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::visitEntryPoint):
(WGSL::RewriteGlobalVariables::determineUsedGlobals):
(WGSL::RewriteGlobalVariables::insertStructs):
(WGSL::RewriteGlobalVariables::insertParameters):
(WGSL::RewriteGlobalVariables::insertLocalDefinitions):
Canonical link: https://commits.webkit.org/264315@main
More information about the webkit-changes
mailing list