protected override void LoadFromSource()
{
string errors = null;
// load the shader from the source string
DX.Direct3D9.ShaderBytecode microcode = D3D.ShaderBytecode.Assemble(Source, null, null, 0, out errors);
if ( !string.IsNullOrEmpty( errors ) )
{
LogManager.Instance.Write( "Error while compiling pixel shader '{0}':\n {1}", Name, errors );
return;
}
// load the code into a shader object (polymorphic)
LoadFromMicrocode( microcode );
}