What I want to do are shown as the following two pictures:
My needs are:
(1)build framework for MacOS Apps;
(2)complie .metallib to accelerate shader init;
(3)frameworks can be used in old MacOS Version which only use Metal 1 Features ;
(4)frameworks use new Metal 2 Features in new MacOS Version and M1 Silicon.
I have konwn:
(1)while setting Deployment Target, MSL will adjust to corresponding version. But this design can't meet my needs, so I made the above settings.
(2)Apple have post a doucument Detecting GPU Features and Metal Software Versions on this issue , but not fully solved my concern.
My concern is:
(1)Can the .metallib complied by high version MSL be loaded by old version MacOS?
(2)Will App Store refuse the MacOS APP use this kind of setting?
Help:
Can you tell me is right to do these setting, or give me a better solution? Thanks!