MCPcopy Index your code
hub / github.com/Aandreba/wasm2spirv

github.com/Aandreba/wasm2spirv @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
309 symbols 675 edges 24 files 8 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crates.io docs.rs GitHub

wasm2spirv - Compile your WebAssembly programs into SPIR-V shaders

Warning

wasm2spirv is still in early development, and not production ready.

This repository contains the code for both, the CLI and library for wasm2spirv.

Installation

To add wasm2spirv as a library for your Rust project, run this command on you'r project's root directory: cargo add wasm2spirv

To install the latest version of the wasm2spirv CLI, run this command: cargo install wasm2spirv

Library features

  • llvm-tools enables optimization and validation.
  • llvm_cross enables cross-compilation to GLSL, HLSL and MSL.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 215
Enum 41
Class 25
Function 23
Interface 5

Languages

Rust100%

Modules by API surface

src/fg/values/integer.rs36 symbols
src/config.rs27 symbols
src/fg/function.rs26 symbols
src/lib.rs22 symbols
src/fg/values/pointer.rs18 symbols
src/fg/values/float.rs18 symbols
src/fg/block.rs18 symbols
src/type.rs15 symbols
src/translation.rs15 symbols
src/binary/serialize.rs15 symbols
src/binary/deserialize.rs15 symbols
src/fg/values/mod.rs14 symbols

For agents

$ claude mcp add wasm2spirv \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page