[wgsl] Allow function explicit templates on enums
* Modify the gen infrastructure to support generating overloads of
functions that are explicitly templated on an enum
* Added a new template parameter type to support the permutations
* Some enums now generate new template kinds (those in core .def
files)
* Add majorness enum
* Add variants of subgroupMatrixLoad and subgroupMatrixStore that are
templated on majorness for wgsl
* Moves argument to template parameter
* currently lowered to equivalent builtins with majorness as argument
* Modify parser so that function call statements can be templated
* Remove ambiguity in non_block_statement by folding function
call statement parsing into variable updating statement
* No support for IR or any backends yet
Bug: 520804445
Change-Id: I0ba43b3d9ab7ee43fd4e3d6771a54a8993c1eb8e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/316675
Commit-Queue: Alan Baker <alanbaker@google.com>
SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.