---
title: structType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlstructmember/structtype()
---

# structType()

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

## Declaration

```swift
func structType() -> MTLStructType?
```

## Return Value

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

## See Also

### Obtaining struct member details

- [arrayType()](metal/mtlstructmember/arraytype().md)
- [pointerType()](metal/mtlstructmember/pointertype().md)
- [textureReferenceType()](metal/mtlstructmember/texturereferencetype().md)
