<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/supportsTextureSampleCount(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(im)supportsTextureSampleCount:"
  },
  "title" : "supportsTextureSampleCount(_:)"
}
-->

# supportsTextureSampleCount(_:)

Returns a Boolean value that indicates whether the GPU can sample a texture with a specific number of sample points.

```
func supportsTextureSampleCount(_ sampleCount: Int) -> Bool
```

## Parameters

`sampleCount`

The number of points a GPU can sample from a texture.

## Discussion

The number of points the GPU can sample a texture varies by device:

|Sample count|Devices                                                                    |
|------------|---------------------------------------------------------------------------|
|1           |All devices                                                                |
|2           |All iOS devices ![](spacer) All tvOS devices ![](spacer) Some macOS devices|
|4           |All devices                                                                |
|8           |Some macOS devices                                                         |

Consider a GPU device’s limitations for sample count by checking
[`MTLTexture`](/documentation/Metal/MTLTexture)`.`[`sampleCount`](/documentation/Metal/MTLTexture/sampleCount) when configuring these properties:

- [`MTLTextureDescriptor`](/documentation/Metal/MTLTextureDescriptor)`.`[`sampleCount`](/documentation/Metal/MTLTextureDescriptor/sampleCount)
- [`MTLRenderPipelineDescriptor`](/documentation/Metal/MTLRenderPipelineDescriptor)`.`[`rasterSampleCount`](/documentation/Metal/MTLRenderPipelineDescriptor/rasterSampleCount)
- [`MTLTileRenderPipelineDescriptor`](/documentation/Metal/MTLTileRenderPipelineDescriptor)`.`[`rasterSampleCount`](/documentation/Metal/MTLTileRenderPipelineDescriptor/rasterSampleCount)
- [`MTLMeshRenderPipelineDescriptor`](/documentation/Metal/MTLMeshRenderPipelineDescriptor)`.`[`rasterSampleCount`](/documentation/Metal/MTLMeshRenderPipelineDescriptor/rasterSampleCount)
- <doc://com.apple.documentation/documentation/MetalKit/MTKView>`.`<doc://com.apple.documentation/documentation/MetalKit/MTKView/sampleCount>

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)