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

# gradientFilters(withSource:)

## Declaration

```swift
func gradientFilters(withSource gradientImage: MPSNNImageNode) -> [MPSNNGradientFilterNode]
```
