mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Device: Deprecated GetDefaultQueue in favor of ::GetQueue()
Bug: dawn:22 Change-Id: I103ea933ca5b93f20d8bf11c6671bd9f603d8ff3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/40061 Reviewed-by: Brandon Jones <bajones@chromium.org> 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
d5a0728b67
commit
6d315daa5d
@@ -129,7 +129,7 @@ namespace utils {
|
||||
wgpu::Extent3D copyExtent = {1, 1, 1};
|
||||
|
||||
// WriteTexture with exactly 1 byte of data.
|
||||
device.GetDefaultQueue().WriteTexture(&textureCopyView, data.data(), 1, &textureDataLayout,
|
||||
©Extent);
|
||||
device.GetQueue().WriteTexture(&textureCopyView, data.data(), 1, &textureDataLayout,
|
||||
©Extent);
|
||||
}
|
||||
} // namespace utils
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace utils {
|
||||
descriptor.usage = usage | wgpu::BufferUsage::CopyDst;
|
||||
wgpu::Buffer buffer = device.CreateBuffer(&descriptor);
|
||||
|
||||
device.GetDefaultQueue().WriteBuffer(buffer, 0, data, size);
|
||||
device.GetQueue().WriteBuffer(buffer, 0, data, size);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user