---
title: sparsePageSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlheapdescriptor/sparsepagesize
---

# sparsePageSize

The page size for any resources you allocate from the heaps you create with this descriptor.

## Declaration

```swift
var sparsePageSize: MTLSparsePageSize { get set }
```

## Discussion

Discussion This property’s default value is 16 kilobytes (MTLSparsePageSize.size16), which is a smaller page size option that can help reduce your app’s memory usage. However, you can reduce operational overhead for sparse textures with larger page sizes, such as MTLSparsePageSize.size64 and MTLSparsePageSize.size256. These operations include blit commands and the configuration of sparse texture mappings (see Blit passes and MTLResourceStateCommandEncoder, respectively).

## See Also

### Configuring a heap

- [type](metal/mtlheapdescriptor/type.md)
- [storageMode](metal/mtlheapdescriptor/storagemode.md)
- [cpuCacheMode](metal/mtlheapdescriptor/cpucachemode.md)
- [hazardTrackingMode](metal/mtlheapdescriptor/hazardtrackingmode.md)
- [resourceOptions](metal/mtlheapdescriptor/resourceoptions.md)
- [size](metal/mtlheapdescriptor/size.md)
