alliedmodders / ambuild

AlliedModders C++ Build System
BSD 3-Clause "New" or "Revised" License
61 stars 32 forks source link

Add HLSL support. #44

Closed dvander closed 8 years ago

dvander commented 8 years ago

This adds rudimentary HLSL support to AMBuild, via the custom C++ tools API. Since FXC is a bit odd - it can only define one function per output file, and compile one function at a time - AMBuild doesn't just drop in a command-line wrapper. Instead, it also defines an additional "unifier" step that combines all the output shader files into one C++ translation unit.

Documentation: https://wiki.alliedmods.net/AMBuild_FXC_API