---
title: MPSVectorDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsvectordescriptor
---

# MPSVectorDescriptor

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

## Declaration

```swift
class MPSVectorDescriptor
```

## Topics

### Initializers

- [init(length:dataType:)](metalperformanceshaders/mpsvectordescriptor/init(length:datatype:).md)
- [init(length:vectors:vectorBytes:dataType:)](metalperformanceshaders/mpsvectordescriptor/init(length:vectors:vectorbytes:datatype:).md)

### Instance Properties

- [dataType](metalperformanceshaders/mpsvectordescriptor/datatype.md)
- [length](metalperformanceshaders/mpsvectordescriptor/length.md)
- [vectorBytes](metalperformanceshaders/mpsvectordescriptor/vectorbytes.md)
- [vectors](metalperformanceshaders/mpsvectordescriptor/vectors.md)

### Type Methods

- [vectorBytes(forLength:dataType:)](metalperformanceshaders/mpsvectordescriptor/vectorbytes(forlength:datatype:).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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Vectors

- [MPSVector](metalperformanceshaders/mpsvector.md)
- [MPSTemporaryVector](metalperformanceshaders/mpstemporaryvector.md)
