Fix examples running with the wire.

The SampleUtils uses CreateSwapChain with a nullptr surface. This is
currently valid with implementation-based swapchains so the argument
should be tagged as optional.

Bug: dawn:269
Change-Id: Ic00d5a67fb038d2771174bb36f99b66b84f1a252
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15680
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-02-03 08:56:04 +00:00 committed by Commit Bot service account
parent 2dd9ed0776
commit 43a0a815b8
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@
"name": "create swap chain", "name": "create swap chain",
"returns": "swap chain", "returns": "swap chain",
"args": [ "args": [
{"name": "surface", "type": "surface"}, {"name": "surface", "type": "surface", "optional": "true"},
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"} {"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"}
] ]
}, },