Blender V5.3
value.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
8#include "kernel/svm/util.h"
9
11
12/* Value Nodes */
13
14template<typename FloatType>
17{
18 /* Derivative of a constant is zero. */
19 stack_store(stack, node.out_offset, FloatType(node.value));
20}
21
22template<typename Float3Type>
25{
26 /* Derivative of a constant is zero. */
27 stack_store(stack, node.out_offset, Float3Type(node.value));
28}
29
ccl_device_inline void stack_store(ccl_private float *stack, const uint a, const float f)
#define ccl_restrict
#define ccl_private
#define ccl_global
#define CCL_NAMESPACE_END
#define ccl_device
ccl_device void svm_node_value_v(ccl_private float *ccl_restrict stack, const ccl_global SVMNodeValueV &ccl_restrict node)
Definition value.h:23
CCL_NAMESPACE_BEGIN ccl_device void svm_node_value_f(ccl_private float *ccl_restrict stack, const ccl_global SVMNodeValueF &ccl_restrict node)
Definition value.h:15