[tint][resolver] Fix @index validation, tweak diagnostics Validator::EntryPoint() was returning early for IndexAttribute, which was missing later validation. Replace the if-else chain with a Switch() which makes early return impossible. Also change the diagnostics for attributes that can only be applied to a specific stage, so that the message states what stage it can be used in. Knowing whether the usage is input or output is not that helpful. Change-Id: I47352a006f45ad6421aa102697216206d0e2044d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/159783 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.