---
title: texture
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cametaldrawable/texture
---

# texture

A Metal texture object that contains the drawable’s contents.

## Declaration

```swift
var texture: any MTLTexture { get }
```

## Discussion

Discussion Use this object to configure a MTLRenderPipelineColorAttachmentDescriptor object to render to the drawable object.
