mtl-info
)A command line tool for decoding and processing Apple's Metal Library files metallib
.
mtl-info
is distributed with cargo. If Rust and Cargo are installed then follow the commands below to get it installed on your system.
```bash cargo install mtl-info
mtl-info --help ```
For listing the names of every Metal fragment or vertex shader in the Metal library.
bash
mtl-info ./default.metallib list
Metal library files contain LLVM bitcode which can be disassembled into a more human-readable assembly format.
```bash
mtl-info ./default.metallib bitcode --with-name outlineRetina_frag
mtl-info ./default.metallib bitcode --with-index 3 ```