---
title: members
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlstructtype/members
---

# members

An array of instances that describe the fields in the struct.

## Declaration

```swift
var members: [MTLStructMember] { get }
```

## Discussion

Discussion Each array element in members is an MTLStructMember instance that corresponds to one of the fields in the struct.

## See Also

### Related Documentation

- [Metal Shading Language Guide](apple-archive/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction.md)
- [Metal Programming Guide](apple-archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Introduction.md)

### Obtaining information about struct members

- [memberByName(_:)](metal/mtlstructtype/memberbyname(_:).md)
