---
title: stackOverflow
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlcommandbuffererror-swift.struct/stackoverflow
---

# stackOverflow

An error code that indicates the GPU terminated the command buffer because a kernel function of tile shader used too many stack frames.

## Declaration

```swift
static var stackOverflow: MTLCommandBufferError.Code { get }
```

## Discussion

Discussion You can set the largest number of stack frames your pipelines by configuring these properties: MTLComputePipelineDescriptor.maxCallStackDepth for kernel functions MTLTileRenderPipelineDescriptor.maxCallStackDepth for tile shaders

## See Also

### Errors codes

- [none](metal/mtlcommandbuffererror-swift.struct/none.md)
- [timeout](metal/mtlcommandbuffererror-swift.struct/timeout.md)
- [pageFault](metal/mtlcommandbuffererror-swift.struct/pagefault.md)
- [notPermitted](metal/mtlcommandbuffererror-swift.struct/notpermitted.md)
- [outOfMemory](metal/mtlcommandbuffererror-swift.struct/outofmemory.md)
- [invalidResource](metal/mtlcommandbuffererror-swift.struct/invalidresource.md)
- [memoryless](metal/mtlcommandbuffererror-swift.struct/memoryless.md)
- [deviceRemoved](metal/mtlcommandbuffererror-swift.struct/deviceremoved.md)
- [accessRevoked](metal/mtlcommandbuffererror-swift.struct/accessrevoked.md)
- [internal](metal/mtlcommandbuffererror-swift.struct/internal.md)
- [MTLCommandBufferError.Code](metal/mtlcommandbuffererror-swift.struct/code.md)
