dawn-cmake/generator/templates
Corentin Wallez 9d6265bc07 Fix examples when using the wire.
Previously the surface argument of CreateSwapChain was made un-optional
to prevent a compilation error. This broke examples because the
device-compatibility part of the wire would start dereferencing a null
pointer.

Instead of making the surface non-optional, make optional objects not
produce = nullptr for method calls in webgpu_cpp.h.

Bug: dawn:22
Change-Id: Icef357cc2b11ed452c78431dde514e4d497ae159
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31565
Reviewed-by: Shaobo Yan <shaobo.yan@intel.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
2020-11-04 10:04:17 +00:00
..
dawn_native Fix RPDesc::occlusionQuerySet not defaulting to nullptr 2020-10-29 13:09:12 +00:00
dawn_wire dawn_wire: Support chunked commands 2020-10-13 22:35:34 +00:00
opengl Separate device lost from internal errors. 2020-04-01 12:07:43 +00:00
.clang-format Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
dawn_proc.c Add Instance and CreateInstance to webgpu.h 2020-01-10 13:06:48 +00:00
dawn_proc_table.h Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
dawn_thread_dispatch_proc.cpp Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
library_webgpu_enum_tables.js Generators for Emscripten 2020-01-28 23:54:38 +00:00
mock_webgpu.cpp Add the entry point of CreateReadyRenderPipeline 2020-10-21 04:37:41 +00:00
mock_webgpu.h Add the entry point of CreateReadyRenderPipeline 2020-10-21 04:37:41 +00:00
webgpu.h Rename BC6HRGBSfloat to BC6HRGBFloat 2020-09-10 08:48:57 +00:00
webgpu_cpp.cpp Niceify formatting in webgpu_cpp 2020-07-30 19:02:43 +00:00
webgpu_cpp.h Fix examples when using the wire. 2020-11-04 10:04:17 +00:00
webgpu_struct_info.json Fixes for Emscripten generators 2020-07-15 08:57:49 +00:00