internal static void MoveState(TexId texId, MyTextureState from, MyTextureState to) { State[(int)from].Remove(texId); State[(int)to].Add(texId); }
internal static bool CheckState(TexId texId, MyTextureState state) { return State[(int)state].Contains(texId); }
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); }