| Crates.io | mtl-info |
| lib.rs | mtl-info |
| version | 0.2.0 |
| created_at | 2019-03-12 23:45:25.411879+00 |
| updated_at | 2019-03-12 23:45:25.411879+00 |
| description | Process and decode Apple Metal library files. |
| homepage | https://github.com/pducks32/mtl-info |
| repository | https://github.com/pducks32/mtl-info |
| max_upload_size | |
| id | 120373 |
| size | 14,540 |
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.
cargo install mtl-info
# Check build output. If $PATH is setup correctly you can now run
mtl-info --help
For listing the names of every Metal fragment or vertex shader in the Metal library.
mtl-info ./default.metallib list
Metal library files contain LLVM bitcode which can be disassembled into a more human-readable assembly format.
# Find entry by name
mtl-info ./default.metallib bitcode --with-name outlineRetina_frag
# Find entry by index
mtl-info ./default.metallib bitcode --with-index 3