mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 16:15:55 +00:00
If a texture's old states of all subresources are the same, and its new states are the same too, then we can use one barrier to transit states for all subresources. We don't need to use one barrier per each subresource. This change can reduce barriers we dispatched, in order to improve performance for particular situations. Bug: dawn:441 Change-Id: I9fe9dabda725e05d4ce5a8e69ee7b40e6724a22a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23145 Commit-Queue: Yunchao He <yunchao.he@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>