---
title: textureReferenceType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlstructmember/texturereferencetype()
---

# textureReferenceType()

Provides a description of the underlying texture when the struct member holds a texture.

## Declaration

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

## Return Value

Return Value An object that describes the texture. If dataType indicates that this member isn’t a texture, this method returns nil.

## See Also

### Obtaining struct member details

- [arrayType()](metal/mtlstructmember/arraytype().md)
- [structType()](metal/mtlstructmember/structtype().md)
- [pointerType()](metal/mtlstructmember/pointertype().md)
