---
title: "supportsTextureSampleCount(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldevice/supportstexturesamplecount(_:)"
---

# supportsTextureSampleCount(_:)

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

## Declaration

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

## Parameters

- `sampleCount`: The number of points a GPU can sample from a texture.

## Mentioned in

Positioning samples programmatically

## Discussion

Discussion The number of points the GPU can sample a texture varies by device:  |   |   |   |   |  Consider a GPU device’s limitations for sample count by checking MTLTexture.sampleCount when configuring these properties: MTLTextureDescriptor.sampleCount MTLRenderPipelineDescriptor.rasterSampleCount MTLTileRenderPipelineDescriptor.rasterSampleCount MTLMeshRenderPipelineDescriptor.rasterSampleCount MTKView.sampleCount

## See Also

### Creating samplers

- [makeSamplerState(descriptor:)](metal/mtldevice/makesamplerstate(descriptor:).md)
- [getDefaultSamplePositions(sampleCount:)](metal/mtldevice/getdefaultsamplepositions(samplecount:).md)
