protected override void load()
{
if ( shaderCode != null && shaderCode.Length > 0 )
{
// unload if needed
if ( IsLoaded )
{
Unload();
}
// creates the shader from an external microcode source
// for example, a compiled HLSL program
LoadFromShaderCode();
}
else
{
// call base implementation
base.Load();
}
}