44 NodeItem value = get_output_default(
"Value", NodeItem::Type::Float);
45 return create_node(
"constant", NodeItem::Type::Float, {{
"value", value}});
59 ntype.
declare = file_ns::sh_node_value_declare;
60 ntype.
gpu_fn = file_ns::gpu_shader_value;
bool GPU_link(GPUMaterial *mat, const char *name,...)
GPUNodeLink * GPU_uniform(const float *num)
void construct_and_set_matching_fn(Args &&...args)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static int gpu_shader_value(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *, GPUNodeStack *out)
static void sh_node_value_declare(NodeDeclarationBuilder &b)
static void sh_node_value_build_multi_function(NodeMultiFunctionBuilder &builder)
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
void sh_fn_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_sh_value()
NodeMaterialXFunction materialx_fn
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
NodeDeclareFunction declare