mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 03:41:34 +00:00
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>