Documentation

Unity Engine

Download Unity

Unity Engine

metalFramebufferOnly

Makes the Metal backbuffer write-only.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool metalFramebufferOnly { get; set; }

Remarks

When the value is
true
, Unity sets the CAMetalLayer.framebufferOnly property on the Metal layer. This lets the driver optimize the backbuffer for display, but you can't read from it. Calls that read the backbuffer, such as ScreenCapture.CaptureScreenshot, don't work when the value is
true
. Unity logs an error, and the captured image doesn't contain the rendered frame.
This property corresponds to Metal Write-Only Backbuffer in Player settings (Other Settings > Rendering). It affects only Apple platforms that use the Metal graphics API.
The default value is
false
.