dawn-cmake/include/dawn/native
Kai Ninomiya 455f573d09 Reland "[chromium-style] Adding constructors and destructors."
This reverts commit 63cea3f8c0.

...except it skips adding the the constructor/destructor/copy
definitions for dawn::native::Format. Adding them triggers "constexpr
variable cannot have non-literal type" (or "declaration requires a
global constructor" if it's not marked constexpr), unless they're
explicitly marked as =default in the header - which just triggers a
different chromium-style warning, so there's no point.

A better solution to the chromium-style warning on Format may be to just
make the class physically smaller:
https://www.chromium.org/developers/coding-style/chromium-style-checker-errors/#constructordestructor-errors

Bug: dawn:1405
Change-Id: Ied6e9d0abff6bf1330131a40c6583bab18888b67
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90303
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
2022-05-17 06:11:42 +00:00
..
D3D12Backend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
DawnNative.h Reland "[chromium-style] Adding constructors and destructors." 2022-05-17 06:11:42 +00:00
MetalBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
NullBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
OpenGLBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
VulkanBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
dawn_native_export.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00