4 releases (breaking)
0.4.0 | Jul 3, 2021 |
---|---|
0.3.0 | Jul 3, 2021 |
0.2.0 | Jul 3, 2021 |
0.1.0 | Nov 22, 2019 |
#917 in Graphics APIs
6KB
71 lines
Shader Translator
This is a binary wrapper of shaderc which compiles GLSL shader source code read from stdin, into SPIR-V source code written to stdout.
Installation
$ cargo install shader-translator
Usage
$ shader-translator --help
Usage: shader-translator [options]
Options:
-f, --fragment fragment shader
-v, --vertex vertex shader
-h, --help print this help menu
Example
$ echo -e "#version 450\nvoid main() {}" | shader-translator --fragment > /tmp/frag.spv
$ file /tmp/frag.spv
/tmp/frag.spv: Khronos SPIR-V binary, little-endian, version 0x00010000, generator 0x000d0007
Dependencies
~39MB
~740K SLoC