public void Apply() { if (parentTechnique != parentEffect.CurrentTechnique.TechniquePointer) { throw new InvalidOperationException( "Applied a pass not in the current technique!" ); } parentEffect.OnApply(); parentEffect.INTERNAL_applyEffect(pass); }