---
title: "init(_:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lowleveldeformationcontext/init(_:)"
---

# init(_:)

Creates a context targeting the specified Metal device.

## Declaration

```swift
init(_ device: any MTLDevice) throws
```

## Parameters

- `device`: The Metal device to target.

## Discussion

Discussion note: If the context cannot be initialized for the given device.
