Metal: Use correct operator to ensure all specialisation constants are applied
Fixes #96077
This commit is contained in:
parent
db24ed4ead
commit
4b02c9bb0a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue