Files
test/intern/cycles/scene/light_tree_debug.h
Sergey Sharybin 0a59c7f0ea Cycles: Rudimentary utilities to plot light tree
Plotting happens from the given root node into a graphviz file.
Supports plotting from both scene level LightTreeNode and the kernel
level KernelLightTreeNode.

An external graphviz command is to be used to convert generated file
to an image.

Pull Request: https://projects.blender.org/blender/blender/pulls/134738
2025-02-18 14:29:00 +01:00

26 lines
647 B
C++

/* SPDX-FileCopyrightText: 2011-2025 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#pragma once
#include "util/string.h"
CCL_NAMESPACE_BEGIN
struct KernelLightTreeNode;
class LightTree;
struct LightTreeNode;
class Scene;
void light_tree_plot_to_file(const Scene &scene,
const LightTree &tree,
const LightTreeNode &root_node,
const string &filename);
void klight_tree_plot_to_file(uint root_index,
const KernelLightTreeNode *knodes,
const string &filename);
CCL_NAMESPACE_END