MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / GetCacheDir

Method GetCacheDir

src/luxrays/utils/ocl.cpp:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255boost::filesystem::path oclKernelPersistentCache::GetCacheDir(const string &applicationName) const {
256#if defined(__linux__)
257 // boost::filesystem::temp_directory_path() is usually mapped to /tmp and
258 // the content of the directory is often delete at each reboot
259 boost::filesystem::path kernelCacheDir(getenv("HOME"));
260 kernelCacheDir = kernelCacheDir / ".config" / "luxcorerender.org";
261#else
262 boost::filesystem::path kernelCacheDir= boost::filesystem::temp_directory_path();
263#endif
264
265 return kernelCacheDir / "kernel_cache" / SanitizeFileName(applicationName);
266}
267
268oclKernelPersistentCache::oclKernelPersistentCache(const string &applicationName) {
269 appName = applicationName;

Callers

nothing calls this directly

Calls 1

SanitizeFileNameFunction · 0.85

Tested by

no test coverage detected