mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 01:46:35 +00:00
Remove deprecated Wire APIs
Bug: dawn:565 Change-Id: I577532347c79e64b418a93551027e89910c3ce68 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/40480 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
20d5e380b3
commit
7fe5aa2eac
@@ -84,18 +84,6 @@ namespace dawn_wire { namespace client {
|
||||
}
|
||||
}
|
||||
|
||||
WGPUDevice Client::GetDevice() {
|
||||
// This function is deprecated. The concept of a "default" device on the wire
|
||||
// will be removed in favor of ReserveDevice/InjectDevice.
|
||||
if (mDevice == nullptr) {
|
||||
ReservedDevice reservation = ReserveDevice();
|
||||
mDevice = FromAPI(reservation.device);
|
||||
ASSERT(reservation.id == 1);
|
||||
ASSERT(reservation.generation == 0);
|
||||
}
|
||||
return reinterpret_cast<WGPUDeviceImpl*>(mDevice);
|
||||
}
|
||||
|
||||
ReservedTexture Client::ReserveTexture(WGPUDevice device) {
|
||||
auto* allocation = TextureAllocator().New(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user