Content Pipeline . Import Effect


Introduction

Importing effect is powered by Sylabs with .fx extension. The syntax is like HLSL, but with custom rules. The effects for all windows platforms can only be built in windows environment.

See stock effect samples to explore built-in effects.

Add mesh content to project

Just set Importer name to EffectImporter and Processor name to EffectProcessor, like below.

<Item Include="\Effect\Blur.fx">
  <Name>Blur</Name>
  <BuildAction>Compile</BuildAction>
  <Importer Name="EffectImporter" />
  <Processor Name="EffectProcessor">
    <HiDef>true</HiDef>
    <Log>true</Log>
  </Processor>
</Item>

Defaultly, HiDef and Log are false. Currently, HiDef is only available on Windows target platform that support Shader Model 4.