[webkit-changes] [WebKit/WebKit] 6b0bfc: [WGSL] Add support for accessing field of primitiv...
Tadeu Zagallo
noreply at github.com
Thu Nov 9 02:37:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6b0bfc80043a4ab22de896d67f7668b4254f2502
https://github.com/WebKit/WebKit/commit/6b0bfc80043a4ab22de896d67f7668b4254f2502
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/tests/valid/constants.wgsl
Log Message:
-----------
[WGSL] Add support for accessing field of primitive structs at constant time
https://bugs.webkit.org/show_bug.cgi?id=264420
rdar://118126948
Reviewed by Mike Wyrzykowski.
While type checking, also compute the constant result of accessing a field from
a constant primitive struct (e.g. as produced by frexp)
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/valid/constants.wgsl:
Canonical link: https://commits.webkit.org/270439@main
More information about the webkit-changes
mailing list