---
title: "gradientFilters(withSources:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsnnfilternode/gradientfilters(withsources:)"
---

# gradientFilters(withSources:)

## Declaration

```swift
func gradientFilters(withSources gradientImages: [MPSNNImageNode]) -> [MPSNNGradientFilterNode]
```
