---
title: MTLCompareFunction.greater
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcomparefunction/greater
---

# MTLCompareFunction.greater

A new value passes the comparison test if it is greater than the existing value.

## Declaration

```swift
case greater
```

## See Also

### Compare function options

- [MTLCompareFunction.never](metal/mtlcomparefunction/never.md)
- [MTLCompareFunction.less](metal/mtlcomparefunction/less.md)
- [MTLCompareFunction.equal](metal/mtlcomparefunction/equal.md)
- [MTLCompareFunction.lessEqual](metal/mtlcomparefunction/lessequal.md)
- [MTLCompareFunction.notEqual](metal/mtlcomparefunction/notequal.md)
- [MTLCompareFunction.greaterEqual](metal/mtlcomparefunction/greaterequal.md)
- [MTLCompareFunction.always](metal/mtlcomparefunction/always.md)
