Update dawn.json to more closely match webgpu.h

- Move wgpu::TextureUsage::Storage at the end of the enum.
 - Reorder some methods of device to be in alphabetical order.
 - Reorder members of wgpu::QuerySetDescriptor.
 - Change SurfaceDescriptorFromHTMLCanvasID to
   SurfaceDescriptorFromCanvasHTMLDescriptor.

Bug: dawn:22
Change-Id: Ib18fbaf153ad2969b0d0c4e49682e8736b00776c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24280
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2020-07-06 18:50:00 +00:00
committed by Commit Bot service account
parent dbf805fe8d
commit 9585c468a2
3 changed files with 25 additions and 25 deletions

View File

@@ -99,7 +99,7 @@ namespace dawn_native {
}
#endif // defined(DAWN_USE_X11)
case wgpu::SType::SurfaceDescriptorFromHTMLCanvasId:
case wgpu::SType::SurfaceDescriptorFromCanvasHTMLSelector:
default:
return DAWN_VALIDATION_ERROR("Unsupported sType");
}

View File

@@ -115,8 +115,8 @@ TEST_F(WindowSurfaceInstanceTests, BadChainedDescriptors) {
// Test that a chained descriptor with HTMLCanvas produces an error.
TEST_F(WindowSurfaceInstanceTests, HTMLCanvasDescriptor) {
wgpu::SurfaceDescriptorFromHTMLCanvasId chainedDescriptor;
chainedDescriptor.id = "myCanvas";
wgpu::SurfaceDescriptorFromCanvasHTMLSelector chainedDescriptor;
chainedDescriptor.selector = "#myCanvas";
wgpu::SurfaceDescriptor descriptor;
descriptor.nextInChain = &chainedDescriptor;