---
title: MTLTensorBufferAttachments
framework: metal
role: symbol
role_heading: Class
path: metal/mtltensorbufferattachments
---

# MTLTensorBufferAttachments

Per-plane buffer backing storage for multi-plane tensor creation.

## Declaration

```swift
class MTLTensorBufferAttachments
```

## Overview

Overview Use this type to associate each plane of a tensor with a MTLBuffer and byte offset, then pass it to the tensor creation API on MTLDevice.

## Topics

### Instance Methods

- [buffer(for:)](metal/mtltensorbufferattachments/buffer(for:).md)
- [offset(for:)](metal/mtltensorbufferattachments/offset(for:).md)
- [reset()](metal/mtltensorbufferattachments/reset().md)
- [setBuffer(_:offset:for:)](metal/mtltensorbufferattachments/setbuffer(_:offset:for:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

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