Remove usage of deprecated Metal API
This commit is contained in:
parent
2b3e0803de
commit
a20d429bc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue