---
title: "BNNSFilterApply(_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/bnnsfilterapply(_:_:_:)"
---

# BNNSFilterApply(_:_:_:)

Applies a filter to an input, writing the result to a specified output.

## Declaration

```swift
func BNNSFilterApply(_ filter: BNNSFilter?, _ in: UnsafeRawPointer, _ out: UnsafeMutableRawPointer) -> Int32
```

## Parameters

- `filter`: The filter to apply.
- `in`: Pointer to the input data.
- `out`: Pointer to the output data.

## Return Value

Return Value Returns 0 on success, -1 on failure.

## See Also

### Forward Propagation Functions

- [BNNSFilterApplyBatch(_:_:_:_:_:_:)](accelerate/bnnsfilterapplybatch(_:_:_:_:_:_:).md)
- [BNNSFilterApplyTwoInput(_:_:_:_:)](accelerate/bnnsfilterapplytwoinput(_:_:_:_:).md)
- [BNNSFilterApplyTwoInputBatch(_:_:_:_:_:_:_:_:)](accelerate/bnnsfilterapplytwoinputbatch(_:_:_:_:_:_:_:_:).md)
