dawn-cmake/include/dawn/native
Zhaoming Jiang c2657b21d5 Dawn: Promote DisallowUnsafeAPIs as instance toggle
This CL add Instance and Adapter toggle stage, and promote
DisallowUnsafeAPIs as an instance toggle, and can be required using
DawnTogglesDescriptor chained in instance descriptor when creating
instance. The instance's toggles state will get inherited to adapters
and devices it create. Related tests are implemented and updated.

Toggles inheritance can be overriden if not forced, so requiring
DisallowUnsafeAPIs when creating device is still available and working
like before.

Note that currently we don't have toggle of adapter stage, and can not
require toggles when creating adapter, until follow up CLs implement it.
Currently the toggles state of a adapter is simply inherited from
instance.

Bug: dawn:1495
Change-Id: I6bf7aa0f950a99451afcc2cab5322c924b7d9520
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122021
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2023-03-07 02:03:54 +00:00
..
D3D12Backend.h d3d12: External image import using multiple wait fences and signal fence 2022-09-07 19:48:45 +00:00
DawnNative.h Dawn: Promote DisallowUnsafeAPIs as instance toggle 2023-03-07 02:03:54 +00:00
MetalBackend.h Metal: Implement begin/end access synchronization with MTLSharedEvent 2022-11-04 22:06:20 +00:00
NullBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
OpenGLBackend.h GL: implement EGL context creation in Dawn native. 2022-06-29 15:29:41 +00:00
VulkanBackend.h vulkan: Validate that exporting a texture uses VK_IMAGE_LAYOUT_UNDEFINED 2022-10-04 17:27:21 +00:00
dawn_native_export.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00