---
title: elementArrayType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlpointertype/elementarraytype()
---

# elementArrayType()

Provides a description of the underlying array when the pointer points to an array.

## Declaration

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

## Return Value

Return Value An object that describes the array. If the pointer does not point to an array, this method returns nil.

## See Also

### Obtaining details for complex pointer elements

- [elementStructType()](metal/mtlpointertype/elementstructtype().md)
