---
title: elementTextureReferenceType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlarraytype/elementtexturereferencetype()
---

# elementTextureReferenceType()

Provides a description of the underlying texture type when an array holds textures as its elements.

## Declaration

```swift
func elementTextureReferenceType() -> MTLTextureReferenceType?
```

## Return Value

Return Value An object that describes the texture. If the array elements aren’t textures, this method returns nil.

## Discussion

Discussion Use this method if elementType is MTLDataType.texture.

## See Also

### Obtaining details for complex array elements

- [element()](metal/mtlarraytype/element().md)
- [elementStructType()](metal/mtlarraytype/elementstructtype().md)
- [elementPointerType()](metal/mtlarraytype/elementpointertype().md)
