22 if (
out[0].hasoutput) {
26 if (
out[1].hasoutput) {
28 GPU_link(mat,
"node_attribute_density",
out[1].link, &
out[1].link);
30 if (
out[2].hasoutput) {
34 if (
out[3].hasoutput) {
36 GPU_link(mat,
"node_attribute_temperature",
out[3].link, &
out[3].link);
void node_type_gpu(struct bNodeType *ntype, NodeGPUExecFunction gpu_fn)
#define SH_NODE_VOLUME_INFO
void nodeRegisterType(struct bNodeType *ntype)
GPUNodeLink * GPU_attribute(GPUMaterial *mat, eCustomDataType type, const char *name)
bool GPU_link(GPUMaterial *mat, const char *name,...)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_volume_info(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *UNUSED(in), GPUNodeStack *out)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void sh_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_sh_volume_info()
NodeDeclareFunction declare