<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImagePyramid/init(device:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSImagePyramid(im)initWithDevice:"
  },
  "title" : "init(device:)"
}
-->

# init(device:)

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

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

## Parameters

`device`

The device the filter will run on.

## Return Value

A valid [`MPSImagePyramid`](/documentation/MetalPerformanceShaders/MPSImagePyramid) object or `nil`, if failure.

## Discussion

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

---

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)