---
title: "init(device:)"
framework: arkit
role: symbol
role_heading: Initializer
path: "arkit/arscnplanegeometry/init(device:)"
---

# init(device:)

Creates a SceneKit plane geometry for rendering with the specified Metal device object.

## Declaration

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

## Parameters

- `device`: The Metal device to use for rendering the geometry.

## Return Value

Return Value A new SceneKit plane geometry, or nil if the Metal device is unavailable.

## Discussion

Discussion A newly created ARSCNPlaneGeometry instance does not represent any specific plane; use the update(from:) method to make the geometry match the estimated shape of a specific plane anchor. The geometry contains a single geometry element; as such, assigning more than one material has no visible effect (see the inherited materials property).
