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:
parent
2dd9ed0776
commit
43a0a815b8
|
@ -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*"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue