```supports_family``` only available on iOS 13
jinleili opened this issue · 4 comments
jinleili commented
supports_family
only available on iOS 13,but iPhone6 is support iOS_GPUFamily2_v3
and system only support up to iOS 12
gfx/src/backend/metal/src/lib.rs
Line 1057 in 46735bb
jinleili commented
use iPhone6 debug my project always crash:
2021-04-29 17:00:23.121398+0800 demo[1338:549768] -[MTLDebugDevice supportsFamily:]: unrecognized selector sent to instance 0x10410ef00
2021-04-29 17:00:23.129984+0800 demo[1338:549768] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTLDebugDevice supportsFamily:]: unrecognized selector sent to instance 0x10410ef00'
jinleili commented
kvark commented
kvark commented
Actually, I found an easy workaround. We shouldn't try to map this to the old features.
Instead, we should port all the checks to use the new feature set tables, and we should carefully find out if supports_family
is legal to call.