---
title: bufferDataType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlargument/bufferdatatype
---

# bufferDataType

The data type of the buffer data.

## Declaration

```swift
var bufferDataType: MTLDataType { get }
```

## Discussion

Discussion If the argument is not a buffer, querying this property is a fatal error.

## See Also

### Describing a buffer argument

- [bufferAlignment](metal/mtlargument/bufferalignment.md)
- [bufferDataSize](metal/mtlargument/bufferdatasize.md)
- [bufferStructType](metal/mtlargument/bufferstructtype.md)
- [bufferPointerType](metal/mtlargument/bufferpointertype.md)
