commit | 427218ec02b33b6b7bf8def14c1235bcff2b243e | [log] [tgz] |
---|---|---|
author | Le Hoang Quyen <lehoangquyen@chromium.org> | Mon May 12 05:52:37 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon May 12 05:52:37 2025 -0700 |
tree | a62ced50c01263f1c5dc068a49c2a71fc4ea7f71 | |
parent | 381c27852721fb20333ff39e766bb0a2febaa728 [diff] |
D3D11: Trigger Flush in ReduceMemoryUsageImpl() to force res cleanup. When we destroy a D3D11 resource, the D3D11 runtime actually defers the real destruction. In order to force deleting the resource for good, we need to call Flush. This CL implements the ReduceMemoryUsageImpl() in DeviceD3D11 so that when being idle: - All pending resource deletions will be flushed. - All driver's allocated resources will be trimmed. Bug: chromium:402138745 Change-Id: I51544cf066302a9c51787ec141e0bc92b753fe8f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/241614 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.