mtl-info

Crates.iomtl-info
lib.rsmtl-info
version0.2.0
sourcesrc
created_at2019-03-12 23:45:25.411879
updated_at2019-03-12 23:45:25.411879
descriptionProcess and decode Apple Metal library files.
homepagehttps://github.com/pducks32/mtl-info
repositoryhttps://github.com/pducks32/mtl-info
max_upload_size
id120373
size14,540
Patrick Metcalfe (pducks32)

documentation

README

Metal Info (mtl-info)

A command line tool for decoding and processing Apple's Metal Library files metallib.

Installing

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

Usage

Listing Entries

For listing the names of every Metal fragment or vertex shader in the Metal library.

mtl-info ./default.metallib list

Processing Shader Code

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
Commit count: 46

cargo fmt