Blender
V5.0
source
blender
blenkernel
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
17
struct
Depsgraph;
18
19
namespace
blender::bke
{
20
21
/* Runtime data specific to the compositing trees. */
22
class
CompositorRuntime
{
23
public
:
24
/* Per-node instance total execution time for the corresponding node, during the last tree
25
* evaluation. */
26
Map<bNodeInstanceKey, timeit::Nanoseconds>
per_node_execution_time
;
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
34
~CompositorRuntime
();
35
};
36
37
/* Runtime data specific to the sequencer, e.g. when using scene strips. */
38
class
SequencerRuntime
{
39
public
:
40
Depsgraph *
depsgraph
=
nullptr
;
41
42
~SequencerRuntime
();
43
};
44
45
class
SceneRuntime
:
NonCopyable
,
NonMovable
{
46
public
:
47
CompositorRuntime
compositor
;
48
49
SequencerRuntime
sequencer
;
50
};
51
52
}
// namespace blender::bke
BLI_map.hh
BLI_timeit.hh
BLI_utility_mixins.hh
DNA_node_types.h
blender::Map
Definition
BLI_map.hh:129
blender::NonCopyable::NonCopyable
NonCopyable(const NonCopyable &other)=delete
blender::NonMovable::NonMovable
NonMovable(NonMovable &&other)=delete
blender::bke::CompositorRuntime
Definition
BKE_scene_runtime.hh:22
blender::bke::CompositorRuntime::preview_depsgraph
Depsgraph * preview_depsgraph
Definition
BKE_scene_runtime.hh:32
blender::bke::CompositorRuntime::per_node_execution_time
Map< bNodeInstanceKey, timeit::Nanoseconds > per_node_execution_time
Definition
BKE_scene_runtime.hh:26
blender::bke::CompositorRuntime::~CompositorRuntime
~CompositorRuntime()
Definition
scene.cc:119
blender::bke::SceneRuntime
Definition
BKE_scene_runtime.hh:45
blender::bke::SceneRuntime::compositor
CompositorRuntime compositor
Definition
BKE_scene_runtime.hh:47
blender::bke::SceneRuntime::sequencer
SequencerRuntime sequencer
Definition
BKE_scene_runtime.hh:49
blender::bke::SequencerRuntime
Definition
BKE_scene_runtime.hh:38
blender::bke::SequencerRuntime::depsgraph
Depsgraph * depsgraph
Definition
BKE_scene_runtime.hh:40
blender::bke::SequencerRuntime::~SequencerRuntime
~SequencerRuntime()
Definition
scene.cc:126
blender::bke
Definition
AS_asset_library.hh:27
Generated on
for Blender by
doxygen
1.16.1