---
title: "setDescriptor(_:for:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtltensorauxiliaryplanedescriptormap/setdescriptor(_:for:)"
---

# setDescriptor(_:for:)

Sets the auxiliary plane descriptor for the given plane type.

## Declaration

```swift
func setDescriptor(_ descriptor: MTLTensorAuxiliaryPlaneDescriptor, for plane: MTLTensorPlaneType)
```

## Parameters

- `descriptor`: The descriptor configuring the auxiliary plane.
- `plane`: The plane type to associate the descriptor with.

## Discussion

Discussion MTLTensorPlaneType.data is not a valid plane type for this method. The data plane is always present, and you configure it directly on MTLTensorDescriptor. MTLTensorPlaneType.scales auxiliary planes only support MTLTensorDataType.float8ue8m0 as a data type.
