Afterglow.Graphics.Effects.SlimDXEffectCompiler.Compile C# (CSharp) Method

Compile() public method

Compiles an effect file specified trough the given path.
public Compile ( string path ) : IEffect
path string The path to the effect file.
return IEffect
        public IEffect Compile(string path)
        {
            string errors;
            var effect = Effect.FromFile(
                mDevice, path, "fx_4_0",
                ShaderFlags.Debug, EffectFlags.None,
                null, null, out errors);

            return new SlimDXEffect(effect);
        }