24 GPU_link(mat,
"node_output_material_surface",
in[0].link, &outlink_surface);
41 ntype.
ui_description =
"Output light information to a light object";
44 ntype.
declare = file_ns::node_declare;
46 ntype.
gpu_fn = file_ns::node_shader_gpu_output_light;
#define NODE_CLASS_OUTPUT
#define SH_NODE_OUTPUT_LIGHT
void GPU_material_output_surface(GPUMaterial *material, GPUNodeLink *link)
bool GPU_link(GPUMaterial *mat, const char *name,...)
void node_register_type(bNodeType &ntype)
static int node_shader_gpu_output_light(GPUMaterial *mat, bNode *, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *)
static void node_declare(NodeDeclarationBuilder &b)
void register_node_type_sh_output_light()
void sh_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
bool object_cycles_shader_nodes_poll(const bContext *C)
std::string ui_description
bool(* add_ui_poll)(const bContext *C)
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare