Blender
V5.0
source
blender
compositor
utilities
COM_utilities_gpu_material.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_string_ref.hh
"
8
9
#include "
DNA_node_types.h
"
10
11
#include "
GPU_material.hh
"
12
13
namespace
blender::compositor
{
14
15
/* Returns the GPU node stack of the input with the given identifier in the given node within the
16
* given inputs stack array. See the ShaderNode class for more information. */
17
GPUNodeStack &
get_shader_node_input
(
const
bNode
&node,
18
GPUNodeStack
inputs
[],
19
StringRef identifier);
20
21
/* Returns the GPU node stack of the output with the given identifier in the given node within the
22
* given output stack array. See the ShaderNode class for more information. */
23
GPUNodeStack &
get_shader_node_output
(
const
bNode
&node,
24
GPUNodeStack
outputs
[],
25
StringRef identifier);
26
27
/* Returns the GPU node link of the input with the given identifier in the given node within the
28
* given inputs stack array, if the input is not linked, a uniform link carrying the value of the
29
* input will be created and returned. It is expected that the caller will use the returned link in
30
* a GPU material, otherwise, the link may not be properly freed. See the ShaderNode class for more
31
* information. */
32
GPUNodeLink *
get_shader_node_input_link
(
const
bNode
&node,
33
GPUNodeStack
inputs
[],
34
StringRef identifier);
35
36
}
// namespace blender::compositor
BLI_string_ref.hh
DNA_node_types.h
bNode
struct bNode bNode
GPU_material.hh
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::get_shader_node_input
GPUNodeStack & get_shader_node_input(const bNode &node, GPUNodeStack inputs[], StringRef identifier)
Definition
compositor/utilities/intern/gpu_material.cc:17
blender::compositor::get_shader_node_output
GPUNodeStack & get_shader_node_output(const bNode &node, GPUNodeStack outputs[], StringRef identifier)
Definition
compositor/utilities/intern/gpu_material.cc:24
blender::compositor::get_shader_node_input_link
GPUNodeLink * get_shader_node_input_link(const bNode &node, GPUNodeStack inputs[], StringRef identifier)
Definition
compositor/utilities/intern/gpu_material.cc:31
outputs
static blender::bke::bNodeSocketTemplate outputs[]
Definition
node_texture_at.cc:16
inputs
static blender::bke::bNodeSocketTemplate inputs[]
Definition
node_texture_at.cc:11
Generated on
for Blender by
doxygen
1.16.1