[webkit-changes] [WebKit/WebKit] 4b417b: [WGSL] Add overloads for vecN constructors
Tadeu Zagallo
noreply at github.com
Thu Mar 30 03:18:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b417b85f4bf9a1f51f0341bf87a5fce436907d5
https://github.com/WebKit/WebKit/commit/4b417b85f4bf9a1f51f0341bf87a5fce436907d5
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-03-30 (Thu, 30 Mar 2023)
Changed paths:
M Source/WebGPU/WGSL/Overload.h
M Source/WebGPU/WGSL/TypeDeclarations.rb
M Source/WebGPU/WGSL/generator/main.rb
M Source/WebGPU/WGSL/tests/valid/overload.wgsl
Log Message:
-----------
[WGSL] Add overloads for vecN constructors
https://bugs.webkit.org/show_bug.cgi?id=254586
rdar://107315663
Reviewed by Myles C. Maxfield.
Add the declarations for all the overloads of vec2, vec3 and vec4 constructors.
This requires introducing a couple new constraints, although constraints aren't
validated yet. There's only one overload per constructor disabled with a fixme,
since they require explicitly specifying the type (e.g. vecN<T>(...)), but we
don't currently support that, but will be implemented next.
* Source/WebGPU/WGSL/Overload.h:
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/generator/main.rb:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:
Canonical link: https://commits.webkit.org/262319@main
More information about the webkit-changes
mailing list