Instance Property

preferredVideoDecoderGPURegistryID

The registry identifier for the GPU used for video decoding.

Declaration

var preferredVideoDecoderGPURegistryID: UInt64 { get set }

Discussion

By default, whenever possible, the GPU associated with the display presenting the CALayer performs the video decoding. Decode transitions to a new GPU, if appropriate, when the CALayer moves to a new display. This property overrides this default behavior, forcing decode to prefer an affinity to the GPU specified regardless of which GPU displays the associated CALayer. Obrain the GPU registry ID from the GPU MTLDevice using registryID or from OpenGL or OpenCL.