diff options
Diffstat (limited to 'intern/cycles/hydra/node_util.h')
-rw-r--r-- | intern/cycles/hydra/node_util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/intern/cycles/hydra/node_util.h b/intern/cycles/hydra/node_util.h new file mode 100644 index 00000000000..e91f554cc45 --- /dev/null +++ b/intern/cycles/hydra/node_util.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2022 NVIDIA Corporation + * Copyright 2022 Blender Foundation */ + +#pragma once + +#include "hydra/config.h" +#include "graph/node.h" + +#include <pxr/base/vt/value.h> + +HDCYCLES_NAMESPACE_OPEN_SCOPE + +void SetNodeValue(CCL_NS::Node *node, const CCL_NS::SocketType &socket, const VtValue &value); + +VtValue GetNodeValue(const CCL_NS::Node *node, const CCL_NS::SocketType &socket); + +HDCYCLES_NAMESPACE_CLOSE_SCOPE |