---
title: format
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlattributedescriptor/format
---

# format

The format of the attribute’s data.

## Declaration

```swift
var format: MTLAttributeFormat { get set }
```

## See Also

### Defining attribute location

- [bufferIndex](metal/mtlattributedescriptor/bufferindex.md)
- [offset](metal/mtlattributedescriptor/offset.md)
- [MTLAttributeFormat](metal/mtlattributeformat.md)
