---
title: framebufferOnly
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtkview/framebufferonly
---

# framebufferOnly

A Boolean value that determines whether the drawable’s textures are used only for rendering.

## Declaration

```swift
var framebufferOnly: Bool { get set }
```

## Discussion

Discussion If the value is true (the default), the underlying CAMetalLayer object allocates its textures with only the renderTarget usage flag. Core Animation can then optimize the textures for display purposes. However, you may not sample, read from, or write to those textures. If the value is false, you can sample or perform read/write operations on the textures, but at a cost to performance.

## See Also

### Configuring the Color Render Target

- [colorPixelFormat](metalkit/mtkview/colorpixelformat.md)
- [colorspace](metalkit/mtkview/colorspace.md)
- [drawableSize](metalkit/mtkview/drawablesize.md)
- [preferredDrawableSize](metalkit/mtkview/preferreddrawablesize.md)
- [autoResizeDrawable](metalkit/mtkview/autoresizedrawable.md)
- [clearColor](metalkit/mtkview/clearcolor.md)
