Exemple #1
0
        /// <summary>
        /// This method applies the first past of the current technique to the device's immediatecontext
        /// </summary>
        public void Apply()
        {
            // Render all passes (usually just one)
            var pass = CurrentTechnique.GetPassByIndex(0);

            pass.Apply(context);
        }
Exemple #2
0
 public EffectPass GetCurrentPass(int index)
 {
     return(CurrentTechnique.GetPassByIndex(index));
 }