๐Ÿ“ฆ cart / glsl-to-spirv

Fork of (deprecated) glsl-to-spirv for use in Bevy while we wait for a pure rust shader compiler

โ˜… 3 stars โ‘‚ 8 forks ๐Ÿ‘ 3 watching
๐Ÿ“ฅ Clone https://github.com/cart/glsl-to-spirv.git
HTTPS git clone https://github.com/cart/glsl-to-spirv.git
SSH git clone git@github.com:cart/glsl-to-spirv.git
CLI gh repo clone cart/glsl-to-spirv
Carter Anderson Carter Anderson Merge pull request #13 from jakobhellermann/link-c++-stdlib fe95427 4 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitmodules
๐Ÿ“„ Cargo.toml
๐Ÿ“„ readme.md
๐Ÿ“„ README.md

This crate is deprecated please use shaderc-rs instead.

BEVY NOTE: This crate is a temporary measure until native rust shader compilation like https://github.com/gfx-rs/naga lands.

Targets requiring build-from-source

glslang will be built from source the first time. Compiled libraries are re-used afterwards.

cmake is required to build from source.

The glslang submodule is assumed to be initialized. Run git submodule update --init if you're checking out from git.

NOTE: There is an additional commit not from upstream that changes one file. This change is what allows gnu toolchains to build.

i686-pc-windows-msvc

  • Select Visual C++ build tools
  • Make sure Visual C++ tools for CMake is ticked on the right
  • Restart the computer after installing build tools - will fail to build otherwise

i686-pc-windows-gnu, x86_64-pc-windows-gnu

  • MSYS2 or MinGW
  • Install the appropriate toolchain (e.g. pacman -S mingw-w64-x86_64-toolchain mingw-w64-i686-toolchain)
  • Add bin directories to your PATH (e.g. C:\msys64\mingw64\bin)