A render pass descriptor generated from the current drawable’s texture, the view’s buffers, and the view’s clear values.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
This is a convenience property.
MTKView does not use this descriptor, and there is no requirement for your application to use this descriptor, either.
The color attachment at index 0 of the render pass descriptor points to the texture assigned to the current drawable.
MTLRender object to render into the drawable’s texture and present it for display (typically registered via the
present(_:)method of a command buffer). Try to minimize the time between when you fetch the drawable and when you submit the command buffer that uses it. For example, you might perform other work on the CPU, render to offscreen textures or execute compute passes, then obtain the drawable and encode a command buffer to render to it. After you submit this command buffer, release all strong references to the drawable. A texture can be reused only if it is not onscreen and all strong references to the drawable have been released. If you don’t release drawables correctly, the view will run out of drawables to vend.