---
title: storageMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcountersamplebufferdescriptor/storagemode
---

# storageMode

The memory storage mode for the counter sample buffers you create with the descriptor.

## Declaration

```swift
var storageMode: MTLStorageMode { get set }
```

## Mentioned in

Converting a GPU’s counter data into a readable format Creating a counter sample buffer to store a GPU’s counter data during a pass

## Discussion

Discussion To access a counter sample buffer with the CPU, set this property to MTLStorageMode.shared, otherwise MTLStorageMode.private.

## See Also

### Configuring a descriptor for a counter sample buffer

- [counterSet](metal/mtlcountersamplebufferdescriptor/counterset.md)
- [label](metal/mtlcountersamplebufferdescriptor/label.md)
- [sampleCount](metal/mtlcountersamplebufferdescriptor/samplecount.md)
