The pixel format of the attachment that stores depth data.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
var depthAttachmentPixelFormat: MTLPixel Format { get set }
Discussion
By default, the pixel format of the rendering pipeline state for each attachment is MTLPixel
.