Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BuildOperationsList()

void ReLogic.Peripherals.RGB.ShaderSelector.BuildOperationsList ( )
inlineprivate

Definition at line 172 of file ShaderSelector.cs.

173 {
174 for (int i = 0; i <= 1; i++)
175 {
177 list.Clear();
178 int num = _shaderGroups.Count - 1;
179 while (num >= 0 && !_shaderGroups[num].AppendOperations((EffectDetailLevel)i, list))
180 {
181 num--;
182 }
183 list.Reverse();
184 if (list.Count > 0)
185 {
186 list[0] = list[0].WithBlendState(new ShaderBlendState(BlendMode.None));
187 }
188 }
189 }
readonly List< ShaderGroup > _shaderGroups
readonly List< ShaderOperation >[] _operationsByDetailLevel

References ReLogic.Peripherals.RGB.ShaderSelector._operationsByDetailLevel, ReLogic.Peripherals.RGB.ShaderSelector._shaderGroups, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), and System.list.

Referenced by ReLogic.Peripherals.RGB.ShaderSelector.Update().