dawn-cmake/src/dawn_wire
Austin Eng 2f218e2b21 Implement upstream RequestDevice, add native-only CreateDevice
This CL implements RequestDevice and also has changes for
Dawn to internally use wgpu::FeatureName enums, instead of
strings. Some of the string handling is kept for now to
support the deprecated creation path. GetFeatureInfo is added
to the instance to get a name and description of the feature,
for reporting in about://gpu.

Dawn device toggles are now passed in an extension struct off
of the device descriptor. This is only supported in dawn_native,
and not dawn_wire, for now, since dawn_wire doesn't have a way
to serialize lists of null-terminated const char*.

To enable the client to check whether the toggle descriptor is
supported, a `dawn-native` feature is added which is supported
all the time with dawn_native, but not supported with dawn_wire.

Feature `dawn-native` also enables a synchronous version of
CreateDevice for convenience.

Bug: dawn:160
Change-Id: Ifc195e7ea808c6c319021528ef4b36bd65583bff
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72020
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2021-12-22 19:02:23 +00:00
..
client Implement upstream RequestDevice, add native-only CreateDevice 2021-12-22 19:02:23 +00:00
server dawn_wire: Implement requestAdapter and requestDevice 2021-12-15 21:52:17 +00:00
BUILD.gn dawn_wire: Implement requestAdapter and requestDevice 2021-12-15 21:52:17 +00:00
BufferConsumer.h dawn_wire: Move BufferConsumer to it's own file. Unify WIRE_TRY 2021-02-25 20:21:25 +00:00
BufferConsumer_impl.h IWYU: add missing type_traits for std::is_unsigned 2021-03-01 20:24:11 +00:00
CMakeLists.txt dawn_wire: Implement requestAdapter and requestDevice 2021-12-15 21:52:17 +00:00
ChunkedCommandHandler.cpp Use a common helper for std::nothrow 2021-01-05 07:40:48 +00:00
ChunkedCommandHandler.h dawn_wire: Protect against large allocations in ChunkedCommandHandler 2020-11-13 01:49:12 +00:00
ChunkedCommandSerializer.cpp dawn_wire: Support chunked commands 2020-10-13 22:35:34 +00:00
ChunkedCommandSerializer.h dawn_wire: Move BufferConsumer to it's own file. Unify WIRE_TRY 2021-02-25 20:21:25 +00:00
SupportedFeatures.cpp Implement upstream RequestDevice, add native-only CreateDevice 2021-12-22 19:02:23 +00:00
SupportedFeatures.h dawn_wire: Implement requestAdapter and requestDevice 2021-12-15 21:52:17 +00:00
Wire.cpp Fix the Windows build 2021-02-19 05:43:57 +00:00
WireClient.cpp Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00
WireDeserializeAllocator.cpp Add wire_cmd.py and dawn_wire.json to autogenerate all wire commands. 2019-01-15 20:49:53 +00:00
WireDeserializeAllocator.h Fix missing virtual on destructor 2019-09-03 07:47:45 +00:00
WireResult.h Better fix for DAWN_NO_DISCARD on WireResult 2021-04-05 20:35:47 +00:00
WireServer.cpp Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00