A group of render targets that hold the results of a render pass.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
@interface MTLRenderPassDescriptor : NSObject
Overview
A MTLRender
object contains a collection of attachments that are the rendering destination for pixels generated by a rendering pass. The MTLRender
class is also used to set the destination buffer for visibility information generated by a rendering pass.
Important
When configuring a MTLTexture
object for use with an attachment, set its usage
value to MTLTexture
if you already know that you intend to use the resulting MTLTexture
object in an attachment. This may significantly improve your app’s performance with certain hardware.