API Documentation: https://ibilon.github.io/hxshaderc/
hxshaderc is a haxe/hxcpp wrapper around shaderc, a compiler for GLSL/HLSL to SPIR-V. This is not the C api.
The library is null safe and compatible cppia, see cppia_host.hxml and sample.hxml on how to use cppia.
- Shader compilation
- [Planned] Include callbacks
- [Planned] Windows/MacOS support
hxshaderc requires building shaderc, see https://github.com/google/shaderc#tools-youll-need for the required dependencies.
Make sure to clone this repository with --recursive, or download the submodule with git submodule update --init.
A small example is available in sample/:
- Compile the cppia host with
haxe cppia_host.hxml, this only to be rebuilt if you change/update the hxglfw library - Compile the sample with
haxe sample.hxml - Run it with
./build/cppia_host/CppiaHost-debug build/sample.cppia.
This library is Apache-2.0 licensed, the statically linked shaderc is Apache-2.0 licensed.