Axiom.RenderSystems.Xna.XnaGpuProgram.load C# (CSharp) 메소드

load() 보호된 메소드

Overridden to allow for loading microcode from external sources.
protected load ( ) : void
리턴 void
		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();
			}
		}