36 row.
op(
"node.shader_script_update",
"", ICON_FILE_REFRESH);
95 "Generate an OSL shader from a file or text data-block.\nNote: OSL shaders are not "
96 "supported on all GPU backends";
103 ntype,
"NodeShaderScript", file_ns::node_free_script, file_ns::node_copy_script);
#define NODE_CLASS_SCRIPT
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
static void node_shader_buts_script_ex(ui::Layout &layout, bContext *C, PointerRNA *ptr)
static void node_copy_script(bNodeTree *, bNode *dest_node, const bNode *src_node)
static void node_free_script(bNode *node)
static void init(bNodeTree *, bNode *node)
static void node_shader_buts_script(ui::Layout &layout, bContext *, PointerRNA *ptr)
@ ITEM_R_SPLIT_EMPTY_NAME
int RNA_enum_get(PointerRNA *ptr, const char *name)
void register_node_type_sh_script()
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
void(*) draw_buttons_ex(ui::Layout &, bContext *C, PointerRNA *ptr)
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)