ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages.
Note that this project is still in an early stage, and it is under active development.
ShaderConductor is not a real compiler. Instead, it glues existing open source components to do the cross-compiling.
ShaderConductor has been tested on Windows, Linux, and macOS.
BuildAll.py <BuildSystem> <Compiler> <Architecture> <Configuration>
where,
This script automatically grabs external dependencies to External folder, generates project file in Build/\<BuildSystem>-\<Compiler>-\<Platform>-\<Architecture>[-\<Configuration>], and builds it.
mkdir Build
cd Build
cmake -G "Visual Studio 15" -T host=x64 -A x64 ../
cmake --build .
After building, the output file ShaderConductor.dll can be located in \<YourCMakeTargetFolder>/Bin/\<Configuration>/. It depends on dxcompiler.dll in the same folder.
You can download the prebuilt binaries generated by CI system. Currently, artifacts for Windows, Linux, macOS are published every commit.
ShaderConductor is distributed under the terms of MIT License. See LICENSE for details.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.