├── .github ├── CODEOWNERS └── workflows │ ├── check-examples.sh │ ├── ci.yml │ └── rustdoc-pages.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── deny.toml ├── docs └── landscape.svg ├── examples ├── spv-lower-lift-roundtrip.rs ├── spv-lower-link-lift.rs ├── spv-lower-link-qptr-lift.rs ├── spv-lower-print.rs └── spv-read-write-roundtrip.rs ├── release.toml ├── rustfmt.toml ├── src ├── cfg.rs ├── cfgssa.rs ├── context.rs ├── func_at.rs ├── lib.rs ├── passes │ ├── legalize.rs │ ├── link.rs │ └── qptr.rs ├── print │ ├── mod.rs │ ├── multiversion.rs │ └── pretty.rs ├── qptr │ ├── analyze.rs │ ├── layout.rs │ ├── lift.rs │ ├── lower.rs │ ├── mod.rs │ └── shapes.rs ├── spv │ ├── lift.rs │ ├── lower.rs │ ├── mod.rs │ ├── print.rs │ ├── read.rs │ ├── spec.rs │ └── write.rs ├── transform.rs └── visit.rs └── tests └── data ├── .gitignore ├── basic.frag.glsl ├── debug-printf.vert.glsl ├── for-loop.vert.glsl ├── for-loop.wgsl └── for-loop.wgsl.spvasm /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/workflows/check-examples.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.github/workflows/check-examples.sh -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/rustdoc-pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.github/workflows/rustdoc-pages.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/.gitmodules -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/README.md -------------------------------------------------------------------------------- /deny.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/deny.toml -------------------------------------------------------------------------------- /docs/landscape.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/docs/landscape.svg -------------------------------------------------------------------------------- /examples/spv-lower-lift-roundtrip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/examples/spv-lower-lift-roundtrip.rs -------------------------------------------------------------------------------- /examples/spv-lower-link-lift.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/examples/spv-lower-link-lift.rs -------------------------------------------------------------------------------- /examples/spv-lower-link-qptr-lift.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/examples/spv-lower-link-qptr-lift.rs -------------------------------------------------------------------------------- /examples/spv-lower-print.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/examples/spv-lower-print.rs -------------------------------------------------------------------------------- /examples/spv-read-write-roundtrip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/examples/spv-read-write-roundtrip.rs -------------------------------------------------------------------------------- /release.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/release.toml -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/cfg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/cfg.rs -------------------------------------------------------------------------------- /src/cfgssa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/cfgssa.rs -------------------------------------------------------------------------------- /src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/context.rs -------------------------------------------------------------------------------- /src/func_at.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/func_at.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/passes/legalize.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/passes/legalize.rs -------------------------------------------------------------------------------- /src/passes/link.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/passes/link.rs -------------------------------------------------------------------------------- /src/passes/qptr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/passes/qptr.rs -------------------------------------------------------------------------------- /src/print/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/print/mod.rs -------------------------------------------------------------------------------- /src/print/multiversion.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/print/multiversion.rs -------------------------------------------------------------------------------- /src/print/pretty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/print/pretty.rs -------------------------------------------------------------------------------- /src/qptr/analyze.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/analyze.rs -------------------------------------------------------------------------------- /src/qptr/layout.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/layout.rs -------------------------------------------------------------------------------- /src/qptr/lift.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/lift.rs -------------------------------------------------------------------------------- /src/qptr/lower.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/lower.rs -------------------------------------------------------------------------------- /src/qptr/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/mod.rs -------------------------------------------------------------------------------- /src/qptr/shapes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/qptr/shapes.rs -------------------------------------------------------------------------------- /src/spv/lift.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/lift.rs -------------------------------------------------------------------------------- /src/spv/lower.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/lower.rs -------------------------------------------------------------------------------- /src/spv/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/mod.rs -------------------------------------------------------------------------------- /src/spv/print.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/print.rs -------------------------------------------------------------------------------- /src/spv/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/read.rs -------------------------------------------------------------------------------- /src/spv/spec.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/spec.rs -------------------------------------------------------------------------------- /src/spv/write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/spv/write.rs -------------------------------------------------------------------------------- /src/transform.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/transform.rs -------------------------------------------------------------------------------- /src/visit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/src/visit.rs -------------------------------------------------------------------------------- /tests/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/.gitignore -------------------------------------------------------------------------------- /tests/data/basic.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/basic.frag.glsl -------------------------------------------------------------------------------- /tests/data/debug-printf.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/debug-printf.vert.glsl -------------------------------------------------------------------------------- /tests/data/for-loop.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/for-loop.vert.glsl -------------------------------------------------------------------------------- /tests/data/for-loop.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/for-loop.wgsl -------------------------------------------------------------------------------- /tests/data/for-loop.wgsl.spvasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rust-GPU/spirt/HEAD/tests/data/for-loop.wgsl.spvasm --------------------------------------------------------------------------------