Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a9da0d20bb1c1e62953893d1a08211e7ba6ea0d9
https://github.com/WebKit/WebKit/commit/a9da0d20bb1c1e62953893d1a08211e7ba6ea0d9
Author: Tadeu Zagallo <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes