---
title: "alpha(forSourceImage:destinationImage:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsnngrammatrixcallback/alpha(forsourceimage:destinationimage:)"
---

# alpha(forSourceImage:destinationImage:)

## Declaration

```swift
func alpha(forSourceImage sourceImage: MPSImage, destinationImage: MPSImage) -> Float
```
