I am having problems with loading precompiled .hlsl effects in SharpdDX, DirectX 9 version. Creating the Effect file from the shader source works great, but it is kind of slow, so I was thinking of compiling the sources and loading the binary.
I am compiling using:
fxc /T fx_2_0 /Fo smaa.fxo SMAA.fx
This was the only combination of parameters I managed to use to compile.
I am using this to create the effect.
Effect.FromFile(Device, "SMAA.fxo", ShaderFlags.None);
But this seems to want to compile they already compiled shader. It complains about syntax errors.