Encodes a command to synchronize the contents of a managed resource from the GPU to the CPU.
- macOS 10.11+
- Mac Catalyst 13.0+
The resource to synchronize. The resource must have a
When the GPU modifies a managed resource, Metal guarantees that the changes are visible to future accesses by the GPU. If you try to read the resource on the CPU, the results are undefined. To make the changes visible to the CPU, encode a synchronization command. After the synchronization command completes, the CPU can access the contents of the resource.