Move the shader cache to `BKE_appdir_folder_caches`, since the temporary folder is reset on Linux on every system restart. Manually delete shader cache files on Blender exit if they have not been used for more than 30 days. Pull Request: https://projects.blender.org/blender/blender/pulls/125010
16 lines
318 B
C++
16 lines
318 B
C++
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_subprocess.hh"
|
|
|
|
#if defined(WITH_OPENGL_BACKEND) && BLI_SUBPROCESS_SUPPORT
|
|
|
|
void GPU_compilation_subprocess_run(const char *subprocess_name);
|
|
|
|
void GPU_shader_cache_dir_clear_old();
|
|
|
|
#endif
|