<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/sparseTileSize(textureType:pixelFormat:sampleCount:sparsePageSize:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(im)sparseTileSizeWithTextureType:pixelFormat:sampleCount:sparsePageSize:"
  },
  "title" : "sparseTileSize(textureType:pixelFormat:sampleCount:sparsePageSize:)"
}
-->

# sparseTileSize(textureType:pixelFormat:sampleCount:sparsePageSize:)

Returns the dimensions of a sparse tile for a texture that has a specific sparse page size.

```
func sparseTileSize(textureType: MTLTextureType, pixelFormat: MTLPixelFormat, sampleCount: Int, sparsePageSize: MTLSparsePageSize) -> MTLSize
```

## Parameters

`textureType`

An [`MTLTextureType`](/documentation/Metal/MTLTextureType) instance.

`pixelFormat`

An [`MTLPixelFormat`](/documentation/Metal/MTLPixelFormat) instance.

`sampleCount`

The number of samples for each pixel.

`sparsePageSize`

An [`MTLSparsePageSize`](/documentation/Metal/MTLSparsePageSize) instance.

## Return Value

A new [`MTLSize`](/documentation/Metal/MTLSize) instance.

---

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)