Contents

GPU devices and work submission

Find any available GPU, submit work to it with command buffers, suspend work, and coordinate between multiple GPUs.

Overview

You can use any available GPU’s MTLDevice instance in addition to the default instance that MTLCreateSystemDefaultDevice() returns. For each device instance, get its MTLCommandQueue instance, and create one or more MTLCommandBuffer instances to send work to the GPU.

When the system suspends your app, use the command queue to finish command buffers already in progress. See Preparing your Metal app to run in the background for more information.

Topics

Locating and inspecting a GPU device

Submitting work to a GPU with Metal 4

Submitting work to a GPU with Metal

Suspending work on a GPU