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

# MTLBlendOperation.subtract

Subtract a portion of the destination pixel values from a portion of the source.

## Declaration

```swift
case subtract
```

## Discussion

Discussion RGB = Source.rgb * SBF - Dest.rgb * DBF A = Source.a * SBF - Dest.a * DBF

## See Also

### Blend operations

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