init(colorPixelFormat:depthPixelFormat:)
Creates an output configuration with the given color and depth pixel formats.
Declaration
init(colorPixelFormat: MTLPixelFormat?, depthPixelFormat: MTLPixelFormat? = nil)Parameters
- colorPixelFormat:
The pixel format of the color attachment, or
nilfor depth-only passes. - depthPixelFormat:
The pixel format of the depth attachment, or
nilto omit depth. Defaults tonil.