From ed9681c92118e2ee736f1e1bfe0c5165495daee9 Mon Sep 17 00:00:00 2001 From: Michael Tang Date: Fri, 6 Aug 2021 22:39:21 +0000 Subject: [PATCH] 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 Reviewed-by: Austin Eng Commit-Queue: Michael Tang --- src/dawn_native/BindGroupLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn_native/BindGroupLayout.cpp b/src/dawn_native/BindGroupLayout.cpp index e3f808225f..1fc4a40788 100644 --- a/src/dawn_native/BindGroupLayout.cpp +++ b/src/dawn_native/BindGroupLayout.cpp @@ -336,7 +336,7 @@ namespace dawn_native { 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