shader-translator

Crates.ioshader-translator
lib.rsshader-translator
created_at2019-11-22 08:05:54.985043
updated_at2021-07-03 08:36:21.950225
descriptionTiny program to read glsl from stdin, and write spir-v to stdout
homepagehttps://github.com/stevebob/shader-translator
repositoryhttps://github.com/stevebob/shader-translator
max_upload_size
id183444
Stephen Sherratt

documentation

README

# Shader Translator [![Version](https://img.shields.io/crates/v/shader-translator.svg)](https://crates.io/crates/shader-translator) [![dependency status](https://deps.rs/repo/github/stevebob/shader-translator/status.svg)](https://deps.rs/repo/github/stevebob/shader-translator) This is a binary wrapper of [shaderc](https://crates.io/crates/shaderc) which compiles GLSL shader source code read from stdin, into SPIR-V source code written to stdout. ## Installation ```bash $ cargo install shader-translator ``` ## Usage ```bash $ shader-translator --help Usage: shader-translator [options] Options: -f, --fragment fragment shader -v, --vertex vertex shader -h, --help print this help menu ``` ## Example ```bash $ 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 ```
Commit count: 16

cargo fmt