Blender V5.0
BKE_compositor.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 <string>
12
13#include "BLI_set.hh"
14
15struct Scene;
16struct ViewLayer;
17struct bContext;
18
20
21/* Get the set of all passes used by the compositor for the given view layer, identified by their
22 * pass names. This might be a superset of the passes actually supported by the render engine, in
23 * which case, the compositor will return an invalid output and issue a warning. */
24Set<std::string> get_used_passes(const Scene &scene, const ViewLayer *view_layer);
25
26/* Checks if the viewport compositor is currently being used. This is similar to
27 * DRWContext::is_viewport_compositor_enabled but checks all 3D views. */
28bool is_viewport_compositor_used(const bContext &context);
29
30} // namespace blender::bke::compositor
bool is_viewport_compositor_used(const bContext &context)
Set< std::string > get_used_passes(const Scene &scene, const ViewLayer *view_layer)