From 43a0a815b8146d7ce596e281267ccd6565e9619e Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 3 Feb 2020 08:56:04 +0000 Subject: [PATCH] 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 Commit-Queue: Corentin Wallez --- dawn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dawn.json b/dawn.json index b849ff8ff3..434ad14d8b 100644 --- a/dawn.json +++ b/dawn.json @@ -595,7 +595,7 @@ "name": "create swap chain", "returns": "swap chain", "args": [ - {"name": "surface", "type": "surface"}, + {"name": "surface", "type": "surface", "optional": "true"}, {"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"} ] },