The number of samples in each fragment.
- iOS 8.0+
- macOS 10.11+
- tvOS 9.0+
The default value is
1. This value is only used if the pipeline render targets support multisampling. If the render targets do not support multisampling, then this value must be
MTLRender object is created, the
sample value of all the render target textures must match this
sample value. Furthermore, the texture type of all render target textures must be
Support for different sample count values varies by device. Call the
supports method to determine if your desired sample count value is supported.