23 if (out[0].hasoutput) {
25 GPU_link(mat,
"node_attribute_color", out[0].link, &out[0].link);
27 if (out[1].hasoutput) {
29 GPU_link(mat,
"node_attribute_density", out[1].link, &out[1].link);
31 if (out[2].hasoutput) {
33 GPU_link(mat,
"node_attribute_flame", out[2].link, &out[2].link);
35 if (out[3].hasoutput) {
37 GPU_link(mat,
"node_attribute_temperature", out[3].link, &out[3].link);
52 ntype.
declare = file_ns::node_declare;
53 ntype.
gpu_fn = file_ns::node_shader_gpu_volume_info;
#define SH_NODE_VOLUME_INFO
GPUNodeLink * GPU_attribute(GPUMaterial *mat, eCustomDataType type, const char *name)
bool GPU_link(GPUMaterial *mat, const char *name,...)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_volume_info(GPUMaterial *mat, bNode *, bNodeExecData *, GPUNodeStack *, GPUNodeStack *out)
void sh_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_sh_volume_info()
NodeGPUExecFunction gpu_fn
NodeDeclareFunction declare