Blender V5.3
compositor_cache.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
12#include "GPU_context.hh"
13
14class GHOST_IContext;
15
16namespace blender::seq {
17
19 private:
21 bool last_evaluation_used_gpu = false;
23 gpu::GPUSecondaryContextData secondary_gpu_context = {};
24
25 public:
27
29 {
30 return cache_manager;
31 }
32
33 void recreate_if_needed(bool gpu,
35 const gpu::GPUSecondaryContextData &gpu_context);
36};
37
38} // namespace blender::seq
void recreate_if_needed(bool gpu, compositor::ResultPrecision precision, const gpu::GPUSecondaryContextData &gpu_context)
compositor::StaticCacheManager & get_cache_manager()