Пример #1
0
 internal static void MoveState(TexId texId, MyTextureState from, MyTextureState to)
 {
     State[(int)from].Remove(texId);
     State[(int)to].Add(texId);
 }
Пример #2
0
 internal static bool CheckState(TexId texId, MyTextureState state)
 {
     return State[(int)state].Contains(texId);
 }
Пример #3
0
        internal static void InitState(TexId texId, MyTextureState state)
        {
            Debug.Assert(!CheckState(texId, MyTextureState.LOADED));
            Debug.Assert(!CheckState(texId, MyTextureState.WAITING));

            State[(int)state].Add(texId);
        }