mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Instead of just having a single `DecorationKind` for the first derivation from `Decoration`, have a `DecorationKind` for every decoration type. Add `Decoration::IsKind()` to test whether the decoration is of, or derives from the given kind. Note, this change is originally by bclayton@ from https://dawn-review.googlesource.com/c/tint/+/33201 R=bclayton@google.com Bug: tint:287 Change-Id: I69b51dfaa3f82ef4d61cda383b2f98f401013429 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33280 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>