File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 33#import < Metal/MTLDevice.h>
44#import < IOKit/kext/KextManager.h>
55
6+ #ifndef MAC_OS_VERSION_26_0
7+ #define MTLGPUFamilyMetal4 ((MTLGPUFamily ) 5002 )
8+ #endif
69#ifndef MAC_OS_VERSION_13_0
710 #define MTLGPUFamilyMetal3 ((MTLGPUFamily ) 5001 )
811#endif
5760 else if ([device supportsFeatureSet: MTLFeatureSet_macOS_GPUFamily1_v1 ])
5861 ffStrbufSetStatic (&gpu->platformApi , " Metal Feature Set 1" );
5962 #else // MAC_OS_X_VERSION_10_15
60- if ([device supportsFamily: MTLGPUFamilyMetal3])
63+ if ([device supportsFamily: MTLGPUFamilyMetal4])
64+ ffStrbufSetStatic (&gpu->platformApi , " Metal 4" );
65+ else if ([device supportsFamily: MTLGPUFamilyMetal3])
6166 ffStrbufSetStatic (&gpu->platformApi , " Metal 3" );
6267 else if ([device supportsFamily: MTLGPUFamilyCommon3 ])
6368 ffStrbufSetStatic (&gpu->platformApi , " Metal Common 3" );
You can’t perform that action at this time.
0 commit comments