---
title: MPSAccelerationStructure
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsaccelerationstructure
---

# MPSAccelerationStructure

The base class for data structures that are built over geometry and used to accelerate ray tracing.

## Declaration

```swift
class MPSAccelerationStructure
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsaccelerationstructure/init(coder:device:).md)
- [init(coder:group:)](metalperformanceshaders/mpsaccelerationstructure/init(coder:group:).md)
- [init(device:)](metalperformanceshaders/mpsaccelerationstructure/init(device:).md)
- [init(group:)](metalperformanceshaders/mpsaccelerationstructure/init(group:).md)

### Instance Properties

- [boundingBox](metalperformanceshaders/mpsaccelerationstructure/boundingbox.md)
- [group](metalperformanceshaders/mpsaccelerationstructure/group.md)
- [status](metalperformanceshaders/mpsaccelerationstructure/status.md)
- [usage](metalperformanceshaders/mpsaccelerationstructure/usage.md)

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsaccelerationstructure/copy(with:device:).md)
- [copy(with:group:)](metalperformanceshaders/mpsaccelerationstructure/copy(with:group:).md)
- [encode(with:)](metalperformanceshaders/mpsaccelerationstructure/encode(with:).md)
- [encodeRefit(commandBuffer:)](metalperformanceshaders/mpsaccelerationstructure/encoderefit(commandbuffer:).md)
- [rebuild()](metalperformanceshaders/mpsaccelerationstructure/rebuild().md)
- [rebuild(completionHandler:)](metalperformanceshaders/mpsaccelerationstructure/rebuild(completionhandler:).md)

## Relationships

### Inherits From

- [MPSKernel](metalperformanceshaders/mpskernel.md)

### Inherited By

- [MPSInstanceAccelerationStructure](metalperformanceshaders/mpsinstanceaccelerationstructure.md)
- [MPSPolygonAccelerationStructure](metalperformanceshaders/mpspolygonaccelerationstructure.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Ray Tracing

- [Accelerating ray tracing and motion blur using Metal](metal/accelerating-ray-tracing-and-motion-blur-using-metal.md)
- [MPSRayIntersector](metalperformanceshaders/mpsrayintersector.md)
- [MPSAccelerationStructureGroup](metalperformanceshaders/mpsaccelerationstructuregroup.md)
- [MPSInstanceAccelerationStructure](metalperformanceshaders/mpsinstanceaccelerationstructure.md)
- [MPSTriangleAccelerationStructure](metalperformanceshaders/mpstriangleaccelerationstructure.md)
