<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLTensorAuxiliaryPlaneDescriptorMap/setDescriptor(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLTensorAuxiliaryPlaneDescriptorMap(im)setDescriptor:forPlane:"
  },
  "title" : "setDescriptor(_:for:)"
}
-->

# setDescriptor(_:for:)

Sets the auxiliary plane descriptor for the given plane type.

```
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

[`MTLTensorPlaneType.data`](/documentation/Metal/MTLTensorPlaneType/data) is not a valid plane type for this method.
The data plane is always present, and you configure it directly on [`MTLTensorDescriptor`](/documentation/Metal/MTLTensorDescriptor).

[`MTLTensorPlaneType.scales`](/documentation/Metal/MTLTensorPlaneType/scales) auxiliary planes only support
[`MTLTensorDataType.metalFloat8ue8m0`](/documentation/Metal/MTLTensorDataType/metalFloat8ue8m0) as a data type.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)