---
title: "init(mtlTexture:options:)"
framework: quartzcore
role: symbol
role_heading: Initializer
path: "quartzcore/carenderer/init(mtltexture:options:)-1cr0b"
---

# init(mtlTexture:options:)

Creates a layer renderer from a Metal texture.

## Declaration

```swift
init(mtlTexture tex: any MTLTexture, options dict: [AnyHashable : Any]? = nil)
```

## See Also

### Creating a Renderer

- [init(cglContext:options:)](quartzcore/carenderer/init(cglcontext:options:)-1l3m2.md)
