supportsTextureSampleCount(_:)
Returns a Boolean value that indicates whether the GPU can sample a texture with a specific number of sample points.
Declaration
func supportsTextureSampleCount(_ sampleCount: Int) -> BoolParameters
- sampleCount:
The number of points a GPU can sample from a texture.
Mentioned in
Discussion
The number of points the GPU can sample a texture varies by device:
Sample count | Devices |
|---|---|
1 | All devices |
2 | All iOS devices [Image] All tvOS devices [Image] Some macOS devices |
4 | All devices |
8 | Some macOS devices |
Consider a GPU device’s limitations for sample count by checking MTLTexture.sampleCount when configuring these properties:
MTKView
.doc://com.apple.documentation/documentation/metalkit/mtkview/samplecount