---
title: "init(device:a:b:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscnnneuronlinear/init(device:a:b:)"
---

# init(device:a:b:)

Initializes a linear neuron filter.

## Declaration

```swift
init(device: any MTLDevice, a: Float, b: Float)
```

## Parameters

- `device`: The device the filter will run on.
- `a`: The “a” variable of the filter function.
- `b`: The “b” variable of the filter function.

## Return Value

Return Value A valid MPSCNNNeuronLinear object or nil, if failure.
