---
title: MTLCounterSampleBufferError.Code.outOfMemory
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcountersamplebuffererror-swift.struct/code/outofmemory
---

# MTLCounterSampleBufferError.Code.outOfMemory

An error code that indicates the GPU device doesn’t have sufficient memory to create a counter sample buffer.

## Declaration

```swift
case outOfMemory
```

## See Also

### Error codes

- [MTLCounterSampleBufferError.Code.invalid](metal/mtlcountersamplebuffererror-swift.struct/code/invalid.md)
- [MTLCounterSampleBufferError.Code.internal](metal/mtlcountersamplebuffererror-swift.struct/code/internal.md)
- [MTLCounterSampleBufferError.Code.invalid](metal/mtlcountersamplebuffererror-swift.struct/code/invalid.md)
- [MTLCounterSampleBufferError.Code.internal](metal/mtlcountersamplebuffererror-swift.struct/code/internal.md)
