Remove usage of deprecated Metal API

This commit is contained in:
Cameron Gutman
2025-10-11 11:41:28 -05:00
parent 2b3e0803de
commit a20d429bc1

View File

@@ -30,7 +30,7 @@ bool VTBaseRenderer::checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PAR
if (params->videoFormat == VIDEO_FORMAT_H265_MAIN10) {
// Exclude all GPUs earlier than macOSGPUFamily2
// https://developer.apple.com/documentation/metal/mtlfeatureset/mtlfeatureset_macos_gpufamily2_v1
if ([device supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily2_v1]) {
if ([device supportsFamily:MTLGPUFamilyMac2]) {
if ([device.name containsString:@"Intel"]) {
// 500-series Intel GPUs are Skylake and don't support Main10 hardware decoding
if ([device.name containsString:@" 5"]) {