---
title: MTLTensorReferenceType
framework: metal
role: symbol
role_heading: Class
path: metal/mtltensorreferencetype
---

# MTLTensorReferenceType

An object that represents a tensor in the shading language in a struct or array.

## Declaration

```swift
class MTLTensorReferenceType
```

## Topics

### Instance Properties

- [access](metal/mtltensorreferencetype/access.md)
- [auxiliaryPlanes](metal/mtltensorreferencetype/auxiliaryplanes.md)
- [dimensions](metal/mtltensorreferencetype/dimensions.md)
- [indexType](metal/mtltensorreferencetype/indextype.md)
- [tensorDataType](metal/mtltensorreferencetype/tensordatatype.md)

## Relationships

### Inherits From

- [MTLType](metal/mtltype.md)

### Conforms To

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

## See Also

### Tensors

- [MTLTensor](metal/mtltensor.md)
- [MTLTensorDescriptor](metal/mtltensordescriptor.md)
- [MTLTensorExtents](metal/mtltensorextents.md)
- [MTLTensorUsage](metal/mtltensorusage.md)
- [MTLTensorDomain](metal/mtltensordomain.md)
- [MTLTensorBinding](metal/mtltensorbinding.md)
- [MTLTensorError](metal/mtltensorerror-swift.struct.md)
- [MTLTensorError.Code](metal/mtltensorerror-swift.struct/code.md)
- [MTLTensorDataType](metal/mtltensordatatype.md)
- [MTLTensorDomain](metal/mtltensordomain.md)
- [MTL_TENSOR_MAX_RANK](metal/mtl_tensor_max_rank.md)
