<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundTasks",
  "identifier" : "/documentation/BackgroundTasks/BGContinuedProcessingTaskRequest/Resources/gpu",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Background Tasks"
    ],
    "preciseIdentifier" : "c:@E@BGContinuedProcessingTaskRequestResources@BGContinuedProcessingTaskRequestResourcesGPU"
  },
  "title" : "gpu"
}
-->

# gpu

An option that indicates a long-running task requires the GPU.

```
static var gpu: BGContinuedProcessingTaskRequest.Resources { get }
```

## Discussion

The system requires your app to have the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.background-tasks.continued-processing.gpu> entitlement with a value of `true` to use the GPU in the background. To do that, enable the Background GPU Access capability on your app’s target. For more information about capabilities in Xcode, see <doc://com.apple.documentation/documentation/Xcode/adding-capabilities-to-your-app>.

Not all devices support background GPU use. For more information, see [Performing long-running tasks on iOS and iPadOS](/documentation/BackgroundTasks/performing-long-running-tasks-on-ios-and-ipados).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)