metal2vulkan

(★ 252)

Translate Metal AIR / LLVM IR to Vulkan SPIR-V with a native Rust emitter

File Explorer

  • .gitattributes
  • .gitignore
  • AGENTS.md
  • Cargo.toml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • LICENSE
  • README.md
  • rustfmt.toml

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

cargo doc

View Details ▼

Build the documentation of Rust packages.

cargo {{[d|doc]}}

Build the documentation for the current project and all dependencies:

cargo {{[d|doc]}} --no-deps

Do not build documentation for dependencies:

cargo {{[d|doc]}} --open

Build and open the documentation in a browser:

🔍

cargo install

View Details ▼

Build and install a Rust binary.

cargo install {{package}}@{{version}}

Install a package from <https://crates.io> (the version is optional - latest by default):

cargo install --git {{repo_url}}

Install a package from the specified Git repository:

cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}

Build from the specified branch/tag/commit when installing from a Git repository:

🔍

cargo run

View Details ▼

Run the current Cargo package.
Note: The working directory of the executed binary will be set to the current working directory.

cargo {{[r|run]}}

Run the default binary target:

cargo {{[r|run]}} --bin {{name}}

Run the specified binary:

cargo {{[r|run]}} --example {{name}}

Run the specified example:

🔍

llvm-dis

View Details ▼

Convert LLVM bitcode files into human-readable LLVM Intermediate Representation (IR).

llvm-dis {{path/to/input.bc}} -o -

Convert a bitcode file as LLVM IR and write the result to `stdout`:

llvm-dis {{path/to/file.bc}}

Convert a bitcode file to an LLVM IR file with the same filename:

llvm-dis {{path/to/input.bc}} -o {{path/to/output.ll}}

Convert a bitcode file to LLVM IR, writing the result to the specified file:

# Project Badges

  • License: LGPL-3.0-or-later License: LGPL-3.0-or-later Visit
// repository documentation