[tint][msl] Check module + options before generating Move the `CanRun()` function from the writer fuzzer into the writer as a helper function. This can then be used by both the fuzzer and the Tint executable to check whether the backend can actually handle the module+options. This yields much more user friendly error messages from the Tint executable when trying to generate backend code for a module that contains features that are not supported by that backend. Bug: 376572262 Change-Id: Ib451250b4898c3f46edaa4ba2e36d6d39e625d91 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/222095 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: 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.