| 357 | } |
| 358 | |
| 359 | void Device::setCacheSize(size_t bytes) |
| 360 | { |
| 361 | #if defined(EMBREE_GEOMETRY_SUBDIVISION) |
| 362 | Lock<MutexSys> lock(g_mutex); |
| 363 | if (bytes == 0) g_cache_size_map.erase(this); |
| 364 | else g_cache_size_map[this] = bytes; |
| 365 | |
| 366 | size_t maxCacheSize = getMaxCacheSize(); |
| 367 | resizeTessellationCache(maxCacheSize); |
| 368 | #endif |
| 369 | } |
| 370 | |
| 371 | void Device::initTaskingSystem(size_t numThreads) |
| 372 | { |
nothing calls this directly
no test coverage detected