Axiom.RenderSystems.Xna.XnaGpuProgramManager._create C# (CSharp) Method

_create() protected method

Create the specified type of GpuProgram.
protected _create ( string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode ) : Axiom.Core.Resource
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
type GpuProgramType
syntaxCode string
return Axiom.Core.Resource
		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." );
            }
		}

Same methods

XnaGpuProgramManager::_create ( string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, NameValuePairList createParams ) : Axiom.Core.Resource