protected void SortSubRenderStates() { if (this.subRenderStateSortValid == false) { if (SubRenderStateList.Count > 1) { SubRenderStateList.Sort(new TargetRenderStateComparer()); this.subRenderStateSortValid = true; } } }
protected void RemoveSubRenderStateInstance(SubRenderState subRenderState) { for (int i = 0; i < SubRenderStateList.Count; i++) { SubRenderState it = SubRenderStateList[i]; if (it == subRenderState) { ShaderGenerator.Instance.DestroySubRenderState(it); SubRenderStateList.RemoveAt(i); break; } } }