Also the UI frameworks are being written in said preferred language these days, eg SwiftUI, and adding one additional language could be perceived as a pain.
Also the UI frameworks are being written in said preferred language these days, eg SwiftUI, and adding one additional language could be perceived as a pain.
https://developer.apple.com/metal/Metal-Shading-Language-Spe...
"The Metal programming language is a C++14-based Specification with extensions and restrictions. Refer to the C++14 Specification (also known as the ISO/IEC JTC1/SC22/WG21 N4431 Language Specification) for a detailed description of the language grammar. This section and its subsections describe the modifications and restrictions to the C++14 language supported in Metal."
Also, the MSL and Objective-C compilers are built on top of LLVM, written in C++.
2 - Metal requires MSL
3 - IO Kit is a C++ framework for macOS, iOS, iPadOS and watchOS drivers
4 - Metal GPGPU drivers are written in IO Kit
5 - Metal is useless without MSL and GPGPU drivers
6 - Ergo, Metal requires C++
And the language for writing drivers in is even more irrelevant because we're not talking about writing drivers. You can't write drivers in Swift either.