<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSVectorDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSVectorDescriptor"
  },
  "title" : "MPSVectorDescriptor"
}
-->

# MPSVectorDescriptor

A description of the length and data type of a vector.

```
class MPSVectorDescriptor
```

## Topics

### Initializers

[`+  vectorDescriptorWithLength:dataType:`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/init(length:dataType:))

[`+  vectorDescriptorWithLength:vectors:vectorBytes:dataType:`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/init(length:vectors:vectorBytes:dataType:))

### Instance Properties

[`dataType`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/dataType)

[`length`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/length)

[`vectorBytes`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/vectorBytes)

[`vectors`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/vectors)

### Type Methods

[`+  vectorBytesForLength:dataType:`](/documentation/MetalPerformanceShaders/MPSVectorDescriptor/vectorBytes(forLength:dataType:))

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

---

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)