This project's goal is to make it easy to build FNA Effects(Shaders) with the MGCB content pipeline.
This content pipeline extension lib already wraps the fxc.exe tool in. If you're in Windows, it just works.
If you're int non-Windows, you have to install wine to run the fxc.exe tool.
To install Wine on Linux, refer to your distribution's package database. Typically the package names will simply be wine.
To install Wineon macOS:
- Install Homebrew from https://brew.sh/
- Install wine with
brew install --cast wine-stable - (If you already have these installed, update with:
brew update,brew upgrade wine-stable)
Once Wine is installed:
- Setup Wine with
winecfg
Build this project and copy FNA.NET.ContentPipeline.dll to the folder containing your Content.mgcb file.
In your Content.mgcb file, add lines similar to the following:
#-------------------------------- References --------------------------------#
/reference:FNA.NET.ContentPipeline.dll
#---------------------------------- Content ---------------------------------#
# begin Effects/Grayscale.fx
/importer:EffectImporter
/processor:FxcEffectProcessor
/processorParam:DebugMode = Auto
/processorParam:Defines=
/build:Effects/Grayscale.fx