---
title: arrayType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlstructmember/arraytype()
---

# arrayType()

Provides a description of the underlying array when the struct member holds an array.

## Declaration

```swift
func arrayType() -> MTLArrayType?
```

## Return Value

Return Value An object that describes the array. If dataType indicates that this member is not an array, this method returns nil.

## See Also

### Obtaining struct member details

- [structType()](metal/mtlstructmember/structtype().md)
- [pointerType()](metal/mtlstructmember/pointertype().md)
- [textureReferenceType()](metal/mtlstructmember/texturereferencetype().md)
