The documentation says:
In macOS, in order for the system to provide a default Metal device object, you must link to the Core Graphics framework. You usually need to do this explicitly if you’re writing apps that don’t use graphics by default, such as command line tools.
Topic:
Graphics & Games
SubTopic:
General
Tags: