---
title: MTLBlendOperation.max
framework: metal
role: symbol
role_heading: Case
path: metal/mtlblendoperation/max
---

# MTLBlendOperation.max

Maximum of the source and destination pixel values.

## Declaration

```swift
case max
```

## Discussion

Discussion RGB = max(Source.rgb, Dest.rgb) A = max(Source.a, Dest.a)

## See Also

### Blend operations

- [MTLBlendOperation.add](metal/mtlblendoperation/add.md)
- [MTLBlendOperation.subtract](metal/mtlblendoperation/subtract.md)
- [MTLBlendOperation.reverseSubtract](metal/mtlblendoperation/reversesubtract.md)
- [MTLBlendOperation.min](metal/mtlblendoperation/min.md)
