mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
dawn_wire: Add an API to reclaim reserved devices and textures
Dawn Wire has a way to reserve an ID and generation on the client side, but if these reservations are never injected on the server, then it will be impossible to reclaim the in-use ObjectIDs. Bug: dawn:565 Change-Id: I751fce237c881e8cbdeaba18ad0ec1e124bd7ac2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38281 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
cef68bc8b7
commit
45ce1fda88
@@ -61,6 +61,9 @@ namespace dawn_wire {
|
||||
ReservedTexture ReserveTexture(WGPUDevice device);
|
||||
ReservedDevice ReserveDevice();
|
||||
|
||||
void ReclaimTextureReservation(const ReservedTexture& reservation);
|
||||
void ReclaimDeviceReservation(const ReservedDevice& reservation);
|
||||
|
||||
// Disconnects the client.
|
||||
// Commands allocated after this point will not be sent.
|
||||
void Disconnect();
|
||||
|
||||
Reference in New Issue
Block a user