[webkit-changes] [WebKit/WebKit] a9da0d: [WGSL] Add zero-initializer declarations
Tadeu Zagallo
noreply at github.com
Tue Jun 13 00:30:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a9da0d20bb1c1e62953893d1a08211e7ba6ea0d9
https://github.com/WebKit/WebKit/commit/a9da0d20bb1c1e62953893d1a08211e7ba6ea0d9
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-06-13 (Tue, 13 Jun 2023)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/TypeDeclarations.rb
M Source/WebGPU/WGSL/tests/invalid/array.wgsl
M Source/WebGPU/WGSL/tests/valid/overload.wgsl
Log Message:
-----------
[WGSL] Add zero-initializer declarations
https://bugs.webkit.org/show_bug.cgi?id=257902
rdar://110540048
Reviewed by Dan Glastonbury.
Add declarations according to the spec[1]. Additionally, constructors for arrays
and structs are handled directly in the type checker, so that is also updated.
[1]: https://gpuweb.github.io/gpuweb/wgsl/#zero-value-builtin-function
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/tests/invalid/array.wgsl:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:
Canonical link: https://commits.webkit.org/265108@main
More information about the webkit-changes
mailing list