14 .default_value(500.0f)
28 float *data =
static_cast<float *
>(
MEM_mallocN(
sizeof(
float) * size * 4,
"cie_xyz texture"));
47 ntype.
declare = file_ns::node_declare;
49 ntype.
gpu_fn = file_ns::node_shader_gpu_wavelength;
#define NODE_CLASS_CONVERTER
#define SH_NODE_WAVELENGTH
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
GPUNodeLink * GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *r_row)
void IMB_colormanagement_wavelength_to_rgb_table(float *r_table, int width)
local_group_size(16, 16) .push_constant(Type b
void *(* MEM_mallocN)(size_t len, const char *str)
void node_type_size_preset(bNodeType *ntype, eNodeSizePreset size)
void node_register_type(bNodeType *ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_wavelength(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
void sh_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_sh_wavelength()
NodeGPUExecFunction gpu_fn
NodeDeclareFunction declare