mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
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:
committed by
Commit Bot service account
parent
dbf805fe8d
commit
9585c468a2
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user