<!--
{
  "availability" : [
    "iOS: 10.0.0 - 18.0.0",
    "iPadOS: 10.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.12.0 - 15.0.0",
    "tvOS: 10.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 3.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSFilterApply(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@BNNSFilterApply"
  },
  "title" : "BNNSFilterApply(_:_:_:)"
}
-->

# BNNSFilterApply(_:_:_:)

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

```
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

Returns 0 on success, -1 on failure.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)