<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLTexture/isFramebufferOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLTexture(py)framebufferOnly"
  },
  "title" : "isFramebufferOnly"
}
-->

# isFramebufferOnly

A Boolean value that indicates whether the texture can only be used as a render target.

```
var isFramebufferOnly: Bool { get }
```

## Discussion

The default is <doc://com.apple.documentation/documentation/Swift/false>, which indicates the use of the texture is not restricted.

If <doc://com.apple.documentation/documentation/Swift/true>, neither [`replace(region:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:)`](/documentation/Metal/MTLTexture/replace(region:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:)) nor [`getBytes(_:bytesPerRow:bytesPerImage:from:mipmapLevel:slice:)`](/documentation/Metal/MTLTexture/getBytes(_:bytesPerRow:bytesPerImage:from:mipmapLevel:slice:)) can be used with this texture. Also, this texture can only be used as an attachment for [`MTLRenderPassDescriptor`](/documentation/Metal/MTLRenderPassDescriptor) and cannot be a texture argument for [`MTLRenderCommandEncoder`](/documentation/Metal/MTLRenderCommandEncoder), [`MTLBlitCommandEncoder`](/documentation/Metal/MTLBlitCommandEncoder), or [`MTLComputeCommandEncoder`](/documentation/Metal/MTLComputeCommandEncoder).

Textures you obtain from a
<doc://com.apple.documentation/documentation/QuartzCore/CAMetalDrawable> instance
are only usable as attachments, depending on the value of
<doc://com.apple.documentation/documentation/QuartzCore/CAMetalLayer/framebufferOnly> passed to their parent
<doc://com.apple.documentation/documentation/QuartzCore/CAMetalLayer> instance.
These restrictions don’t apply to textures that your app creates directly.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)