/// <summary> /// Initializes a new instance of the <see cref="GorgonEffectPassArray"/> class. /// </summary> /// <param name="effect">Effect that owns the passes in this list.</param> /// <param name="passCount">The pass count.</param> internal GorgonEffectPassArray(GorgonEffect effect, int passCount) { _passes = new GorgonEffectPass[passCount.Max(1)]; for (int i = 0; i < _passes.Length; i++) { _passes[i] = new GorgonEffectPass(effect, i); } }
/// <summary> /// Initializes a new instance of the <see cref="GorgonEffectPass"/> class. /// </summary> /// <param name="effect">Effect that owns the pass.</param> /// <param name="passIndex">Index of the pass.</param> internal GorgonEffectPass(GorgonEffect effect, int passIndex) { Effect = effect; PassIndex = passIndex; }