commit | ed9681c92118e2ee736f1e1bfe0c5165495daee9 | [log] [tgz] |
---|---|---|
author | Michael Tang <tangm@microsoft.com> | Fri Aug 06 22:39:21 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 06 22:39:21 2021 +0000 |
tree | a389069bfbe3f27b6f349c9ceeac887b36f1064f | |
parent | 8d8fadbbe4e1e65ae08781bcf9d6f0a158f08a12 [diff] |
dawn_native: Fallback sorting bindings in BindGroupLayout to use the binding number This helps us merge contiguous descriptor ranges in https://dawn-review.googlesource.com/c/dawn/+/60764 Change-Id: I772262b117087ec1f1d744596be2585a5996325f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/60765 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Michael Tang <tangm@microsoft.com>
diff --git a/src/dawn_native/BindGroupLayout.cpp b/src/dawn_native/BindGroupLayout.cpp index e3f8082..1fc4a40 100644 --- a/src/dawn_native/BindGroupLayout.cpp +++ b/src/dawn_native/BindGroupLayout.cpp
@@ -336,7 +336,7 @@ case BindingInfoType::ExternalTexture: break; } - return false; + return a.binding < b.binding; } // This is a utility function to help ASSERT that the BGL-binding comparator places buffers