---
title: "rebuild(completionHandler:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsaccelerationstructure/rebuild(completionhandler:)"
---

# rebuild(completionHandler:)

## Declaration

```swift
func rebuild(completionHandler: @escaping @Sendable (MPSAccelerationStructure?) -> Void)
```

```swift
func rebuild() async -> MPSAccelerationStructure?
```
