Instance Property


The registry identifier for the GPU used for video decoding.


var preferredVideoDecoderGPURegistryID: UInt64 { get set }


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.