| 225 | } |
| 226 | |
| 227 | void TextureCache::unbindImageAsync(std::string_view callbackKey) |
| 228 | { |
| 229 | if (_asyncStructQueue.empty()) |
| 230 | { |
| 231 | return; |
| 232 | } |
| 233 | |
| 234 | for (auto&& asyncStruct : _asyncStructQueue) |
| 235 | { |
| 236 | if (asyncStruct->callbackKey == callbackKey) |
| 237 | { |
| 238 | asyncStruct->callback = nullptr; |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | void TextureCache::unbindAllImageAsync() |
| 244 | { |