mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 22:26:06 +00:00
This change allows multiple Dawn textures to be created from the same D3D11 resource. This avoids re-opening the shared handle by caching the D3D12 resource outside of the Dawn texture. Re-opening the handle costs 5-10% of CPU cycles per frame, which far exceeded syncronization costs. In a future change, WrapSharedHandle will be depreciated. BUG=dawn:625 Change-Id: If0d2dc9b7445ec3ae718bc5305164db88057c4ea Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/42140 Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>