29 if (
out[0].hasoutput) {
33 if (
out[1].hasoutput) {
35 GPU_link(mat,
"node_attribute_density",
out[1].link, &
out[1].link);
37 if (
out[2].hasoutput) {
41 if (
out[3].hasoutput) {
59 ntype.
ui_description =
"Read volume data attributes from volume grids";
62 ntype.
declare = file_ns::node_declare;
63 ntype.
gpu_fn = file_ns::node_shader_gpu_volume_info;
#define SH_NODE_VOLUME_INFO
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(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bool GPU_link(GPUMaterial *mat, const char *name,...)
void register_node_type_sh_volume_info()
GPUNodeLink * GPU_attribute(GPUMaterial *mat, eCustomDataType type, const char *name)
GPUNodeLink * GPU_kernel_globals()
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare