| 135 | } |
| 136 | |
| 137 | void |
| 138 | ActionsCache::setIdentityResult(U64 hash, |
| 139 | double time, |
| 140 | ViewIdx view, |
| 141 | int inputNbIdentity, |
| 142 | ViewIdx inputView, |
| 143 | double identityTime) |
| 144 | { |
| 145 | QMutexLocker l(&_cacheMutex); |
| 146 | ActionsCacheInstance & cache = getOrCreateActionCache(hash); |
| 147 | ActionKey key; |
| 148 | |
| 149 | key.time = time; |
| 150 | key.view = view; |
| 151 | key.mipMapLevel = 0; |
| 152 | |
| 153 | IdentityResults & v = cache._identityCache[key]; |
| 154 | v.inputIdentityNb = inputNbIdentity; |
| 155 | v.inputIdentityTime = identityTime; |
| 156 | v.inputView = inputView; |
| 157 | } |
| 158 | |
| 159 | bool |
| 160 | ActionsCache::getComponentsNeededResults(U64 hash, double time, ViewIdx view, EffectInstance::ComponentsNeededMap* neededComps, std::bitset<4> *processChannels, bool *processAll, |