RemoveAllPasses() public method

Removes all passes from this technique and queues them for deletion.
public RemoveAllPasses ( ) : void
return void
        /// <summary>
        ///		Copy the details of this Technique to another.
        /// </summary>
        /// <param name="target"></param>
        public void CopyTo(Technique target)
        {
            target.name        = name;
            target.isSupported = isSupported;
            target.lodIndex    = lodIndex;
            target.schemeIndex = schemeIndex;

            target.RemoveAllPasses();

            // clone each pass and add that to the new technique
            for (int i = 0; i < passes.Count; i++)
            {
                Pass pass    = (Pass)passes[i];
                Pass newPass = pass.Clone(target, pass.Index);
                target.passes.Add(newPass);
            }

            // Compile for categorised illumination on demand
            target.ClearIlluminationPasses();
            target.illuminationPassesCompilationPhase = IlluminationPassesState.NotCompiled;
        }
Beispiel #2
0
		/// <summary>
		///		Copy the details of this Technique to another.
		/// </summary>
		/// <param name="target"></param>
		public void CopyTo( Technique target )
		{
			target._isSupported = _isSupported;
			target.SchemeIndex = SchemeIndex;
			target._lodIndex = _lodIndex;

			target.RemoveAllPasses();

			// clone each pass and add that to the new technique
			for ( int i = 0; i < _passes.Count; i++ )
			{
				Pass pass = _passes[ i ];
				Pass newPass = pass.Clone( target, pass.Index );
				target._passes.Add( newPass );
			}

			// Compile for categorized illumination on demand
			ClearIlluminationPasses();
			_illuminationPassesCompilationPhase = IlluminationPassesCompilationPhase.NotCompiled;

		}
        /// <summary>
        ///		Copy the details of this Technique to another.
        /// </summary>
        /// <param name="target"></param>
        public void CopyTo(Technique target)
        {
            target.name = name;
            target.isSupported = isSupported;
            target.lodIndex = lodIndex;
            target.schemeIndex = schemeIndex;

            target.RemoveAllPasses();

            // clone each pass and add that to the new technique
            for(int i = 0; i < passes.Count; i++) {
                Pass pass = (Pass)passes[i];
                Pass newPass = pass.Clone(target, pass.Index);
                target.passes.Add(newPass);
            }

            // Compile for categorised illumination on demand
            target.ClearIlluminationPasses();
            target.illuminationPassesCompilationPhase = IlluminationPassesState.NotCompiled;
        }