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.");
48 GPU_stack_link(mat, node,
"node_output_aov", in, out, hash_link, &outlink);
63 ntype.
declare = file_ns::node_declare;
64 ntype.
draw_buttons = file_ns::node_shader_buts_output_aov;
65 ntype.
initfunc = file_ns::node_shader_init_output_aov;
68 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)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
local_group_size(16, 16) .push_constant(Type b
void node_type_storage(bNodeType *ntype, const char *storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
void node_register_type(bNodeType *ntype)
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, int type, const char *name, short nclass)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGPUExecFunction gpu_fn
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare