Axiom.Graphics.Compositor.Compile C# (CSharp) Метод

Compile() защищенный Метод

Check supportedness of techniques.
protected Compile ( ) : void
Результат void
		protected void Compile()
		{
			// Sift out supported techniques
			supportedTechniques.Clear();
			// Try looking for exact technique support with no texture fallback
			foreach ( CompositionTechnique t in techniques )
			{
				// Look for exact texture support first
				if ( t.IsSupported( false ) )
				{
					supportedTechniques.Add( t );
				}
			}

			if ( supportedTechniques.Count == 0 )
			{
				// Check again, being more lenient with textures
				foreach ( CompositionTechnique t in techniques )
				{
					// Allow texture support with degraded pixel format
					if ( t.IsSupported( true ) )
					{
						supportedTechniques.Add( t );
					}
				}
			}
			compilationRequired = false;
		}