<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLTextureDescriptor/placementSparsePageSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLTextureDescriptor(py)placementSparsePageSize"
  },
  "title" : "placementSparsePageSize"
}
-->

# placementSparsePageSize

Determines the page size for a placement sparse texture.

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

## Discussion

Set this property to a non-zero value to create a *placement sparse texture*.

Placement sparse textures are instances of [`MTLTexture`](/documentation/Metal/MTLTexture) that you assign memory to using a [`MTLHeap`](/documentation/Metal/MTLHeap) instance
of type [`MTLHeapType.placement`](/documentation/Metal/MTLHeapType/placement) and a [`maxCompatiblePlacementSparsePageSize`](/documentation/Metal/MTLHeapDescriptor/maxCompatiblePlacementSparsePageSize)
at least as large as the [`MTLSparsePageSize`](/documentation/Metal/MTLSparsePageSize) value you assign to this property.

This value is 0 by default.

---

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)