<!--
{
  "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/MTLHeapDescriptor/sparsePageSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLHeapDescriptor(py)sparsePageSize"
  },
  "title" : "sparsePageSize"
}
-->

# sparsePageSize

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

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

## Discussion

This property’s default value is 16 kilobytes ([`MTLSparsePageSize.size16`](/documentation/Metal/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`](/documentation/Metal/MTLSparsePageSize/size64) and [`MTLSparsePageSize.size256`](/documentation/Metal/MTLSparsePageSize/size256). These operations include blit commands and the configuration of sparse texture mappings (see [Blit passes](/documentation/Metal/blit-passes) and [`MTLResourceStateCommandEncoder`](/documentation/Metal/MTLResourceStateCommandEncoder), respectively).

---

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)