protected override Resource _create( string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode )
{
switch (type)
{
case GpuProgramType.Vertex:
return new XnaVertexProgram( this, name, handle, group, isManual, loader, device );
case GpuProgramType.Fragment:
return new XnaFragmentProgram( this, name, handle, group, isManual, loader, device );
default:
throw new NotSupportedException( "The program type is not supported." );
}
}