dawn-cmake/docs
Zhaoming Jiang 63b777b552 Dawn: Refactor device toggles
This CL refactor the logic adapter creating device toggles set when
creating device and the way device holding its toggles. This CL also
introduce the concept "toggle stage", currently "device stage" only but
in future will add "instance stage" and "adapter stage" for instance and
adapter toggles. No changes on Dawn API.
More details:
1. Introduce `TogglesState` objects that represent the complete toggles
   state of a device (and will used for instance and adapter in future).
2. When creating a device, adapter set up a TogglesState object for it
   in `AdapterBase::CreateDeviceInternal` and
   `Adapter::SetupBackendDeviceToggles`, no other place would change
   the device's toggles state. This change simplify the logic.
3. Introduce the `ToggleStage` enum for every toggle and `TogglesState`
   object. Currently we only have `Device` toggle stage, but in future
   will have `Instance` and `Adapter` for instance and adapter toggles.

Bug: dawn:1495
Change-Id: Ifafac6a6a075b5b9a733159574ae5b6d4f3ebde9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118030
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2023-02-10 01:43:55 +00:00
..
dawn Dawn: Refactor device toggles 2023-02-10 01:43:55 +00:00
imgs Shuffle 'docs' directories 2022-01-27 18:33:47 +00:00
tint tint/resolver: Make pointer aliasing a hard error 2023-02-07 19:40:01 +00:00
OWNERS Add top-level OWNERS and scope Tint owners more tightly. 2022-04-07 17:59:14 +00:00
building.md Cleanup duplicate files; Combine README and build docs. 2022-04-28 16:25:43 +00:00
clang-tidy.md [clang-tidy] Add ability to checkout clang-tidy. 2022-05-16 12:58:24 +00:00
support.md Add maxBufferSize limit 2022-09-29 19:02:11 +00:00