---
title: elementStructType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlpointertype/elementstructtype()
---

# elementStructType()

Provides a description of the underlying struct when the pointer points to a struct.

## Declaration

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

## Return Value

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

## See Also

### Obtaining details for complex pointer elements

- [elementArrayType()](metal/mtlpointertype/elementarraytype().md)
