Remove the core type flag for a TypeInfo fix. This CL updates the TypeInfo structure to have a "dialect" field which is calculated based on the string name of the namespace of the class generating the type info. This is done strictly as a `consteval` function so the string comparison happens at compile time only, the result is an emum which provides dialect information. This is a minor layering violation, but it allows us to determine if types are core, and actually, if _anything_ which uses castable is core or a specific dialect. This should let us expand the validation to also validate instructions are only for the core dialect. Fixed: 539481968 Change-Id: I10d0eae6b758a2f1d634911866cdcf9e79b7ea75 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/328115 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Auto-Submit: dan sinclair <dsinclair@chromium.org>
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.