---
title: offlineGPUCount()
framework: coreimage
role: symbol
role_heading: Type Method
path: coreimage/cicontext/offlinegpucount()
---

# offlineGPUCount()

Returns the number of GPUs not currently driving a display.

## Declaration

```swift
class func offlineGPUCount() -> UInt32
```

## Return Value

Return Value The number of offline GPU devices.

## Discussion

Discussion If this count is greater than zero, the system has attached GPU devices that are not currently driving a display. You can use these devices for Core Image rendering by creating a context with the init(forOfflineGPUAtIndex:) orinit(forOfflineGPUAtIndex:colorSpace:options:sharedContext:) method.

## See Also

### Managing Resources

- [clearCaches()](coreimage/cicontext/clearcaches().md)
- [reclaimResources()](coreimage/cicontext/reclaimresources().md)
- [workingColorSpace](coreimage/cicontext/workingcolorspace.md)
- [workingFormat](coreimage/cicontext/workingformat.md)
