Blender V5.0
BKE_scene_runtime.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_map.hh"
12#include "BLI_timeit.hh"
13#include "BLI_utility_mixins.hh"
14
15#include "DNA_node_types.h"
16
17struct Depsgraph;
18
19namespace blender::bke {
20
21/* Runtime data specific to the compositing trees. */
23 public:
24 /* Per-node instance total execution time for the corresponding node, during the last tree
25 * evaluation. */
27
28 /* A dependency graph used for interactive compositing. This is initialized the first time it is
29 * needed, and then kept persistent for the lifetime of the scene. This is done to allow the
30 * compositor to track changes to resources its uses as well as reduce the overhead of creating
31 * the dependency graph every time it executes. */
32 Depsgraph *preview_depsgraph = nullptr;
33
35};
36
37/* Runtime data specific to the sequencer, e.g. when using scene strips. */
39 public:
40 Depsgraph *depsgraph = nullptr;
41
43};
44
51
52} // namespace blender::bke
NonCopyable(const NonCopyable &other)=delete
NonMovable(NonMovable &&other)=delete
Map< bNodeInstanceKey, timeit::Nanoseconds > per_node_execution_time