Contents

offlineGPUCount()

Returns the number of GPUs not currently driving a display.

Declaration

class func offlineGPUCount() -> UInt32

Return Value

The number of offline GPU devices.

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