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

# init(device:)

Initializes a downwards 5-tap image pyramid with the default filter kernel and device.

## Declaration

```swift
convenience init(device: any MTLDevice)
```

## Parameters

- `device`: The device the filter will run on.

## Return Value

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

## Discussion

Discussion The filter kernel is the outer product of w = [1/16, 1/4, 3/8, 1/4, 1/16]^T, with itself.

## See Also

### Methods

- [init(device:centerWeight:)](metalperformanceshaders/mpsimagepyramid/init(device:centerweight:).md)
- [init(device:kernelWidth:kernelHeight:weights:)](metalperformanceshaders/mpsimagepyramid/init(device:kernelwidth:kernelheight:weights:).md)
