.metal filename extension to gain access to Metal's build, profile, and debug tools.
.metal filename extension denotes a Metal Shading Language source-code file. Using this extension allows Xcode to recognize Metal Shading Language files in your project, automatically build a default library at build time, and help you profile and debug source code with specialized Metal tools. Using the
.metal filename extension also allows you to manually build a library by using Metal's command-line tools.