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>
This commit is contained in:
Michael Tang 2021-08-06 22:39:21 +00:00 committed by Dawn LUCI CQ
parent 8d8fadbbe4
commit ed9681c921
1 changed files with 1 additions and 1 deletions

View File

@ -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