Merge pull request #96209 from stuartcarnie/sgc/96077/fix_sdfgi
Metal: Use correct operator to ensure specialisation constants are sorted
This commit is contained in:
commit
f648de1a83
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue