Metal: Use correct operator to ensure all specialisation constants are applied

Fixes #96077
This commit is contained in:
Stuart Carnie 2024-08-28 20:07:19 +10:00
parent db24ed4ead
commit 4b02c9bb0a
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F
1 changed files with 1 additions and 1 deletions

View File

@ -3112,7 +3112,7 @@ RenderingDeviceDriverMetal::Result<id<MTLFunction>> RenderingDeviceDriverMetal::
NSArray<MTLFunctionConstant *> *constants = function.functionConstantsDictionary.allValues;
bool is_sorted = true;
for (uint32_t i = 1; i < constants.count; i++) {
if (constants[i - 1].index < constants[i].index) {
if (constants[i - 1].index > constants[i].index) {
is_sorted = false;
break;
}