---
title: bufferDataSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlargument/bufferdatasize
---

# bufferDataSize

The size, in bytes, of the buffer data.

## Declaration

```swift
var bufferDataSize: Int { 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)
- [bufferDataType](metal/mtlargument/bufferdatatype.md)
- [bufferStructType](metal/mtlargument/bufferstructtype.md)
- [bufferPointerType](metal/mtlargument/bufferpointertype.md)
