Skip to content

FNA-NET/FNA.NET.ContentPipeline

Repository files navigation

FNA.NET.ContentPipeline

This project's goal is to make it easy to build FNA Effects(Shaders) with the MGCB content pipeline.

Prerequisites

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.

(Linux/macOS) Installing Wine

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

How to use

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

Credit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages