5 releases

0.1.4 Mar 14, 2024
0.1.3 Feb 13, 2024
0.1.2 Dec 26, 2023
0.1.1 Dec 26, 2023
0.1.0 Dec 25, 2023

#748 in Graphics APIs

Download history 9/week @ 2023-12-22 20/week @ 2024-02-09 17/week @ 2024-02-16 9/week @ 2024-02-23 1/week @ 2024-03-01 91/week @ 2024-03-08 27/week @ 2024-03-15 2/week @ 2024-03-22 5/week @ 2024-03-29

125 downloads per month

MIT/Apache

565KB
13K SLoC

SPIR-Q Assembler

Crate

SPIR-Q Assembler (spirq-as) is a SPIR-V assembler written in pure Rust. It is a drop-in replacement of the official assembler spirv-as with the same commandline arguments.

Install

You can install spirq-as from cargo with:

cargo install spirq-as

Usage

To assemble SPIR-V binary from SPIR-V assembly, you can either pass the source file path by argument or pipe the code in.

spirq-as [INPUT].spvasm -o [OUTPUT].spv
# - or -
cat [INPUT].spvasm | spirq-as -o [OUTPUT].spv

spirq-as is a CLI tool for end users. You can also integrate the assembler to your application from the library crate spirq-spvasm.

License

This project is licensed under either of

at your option.

Dependencies

~3.5MB
~71K SLoC