17 b.add_input<
decl::Color>(
"Color").default_value({0.0f, 0.0f, 0.0f, 1.0f});
18 b.add_input<
decl::Float>(
"Value").default_value(0.0f).min(0.0f).max(1.0f);
44 "GPUCodegen: AOV hash needs float and uint to be the same size.");
65 "Arbitrary Output Variables.\nProvide custom render passes for arbitrary shader node "
69 ntype.
declare = file_ns::node_declare;
70 ntype.
draw_buttons = file_ns::node_shader_buts_output_aov;
71 ntype.
initfunc = file_ns::node_shader_init_output_aov;
74 ntype.
gpu_fn = file_ns::node_shader_gpu_output_aov;
#define NODE_CLASS_OUTPUT
#define SH_NODE_OUTPUT_AOV
#define BLI_STATIC_ASSERT(a, msg)
BLI_INLINE unsigned int BLI_hash_string(const char *str)
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
void GPU_material_add_output_link_aov(GPUMaterial *material, GPUNodeLink *link, int hash)
void GPU_material_flag_set(GPUMaterial *mat, eGPUMaterialFlag flag)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
void * MEM_callocN(size_t len, const char *str)
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_output_aov(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_shader_init_output_aov(bNodeTree *, bNode *node)
static int node_shader_gpu_output_aov(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_declare(NodeDeclarationBuilder &b)
void register_node_type_sh_output_aov()
void sh_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
std::string ui_description
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)