15 .default_value({0.0f, 0.0f, 0.0f, 1.0f})
16 .description(
"The color of all pixels in the image");
22 .description(
"The size of the image");
25 .structure_type(StructureType::Dynamic)
26 .
description(
"An image of the given size and constant color");
43 if (this->
context().use_gpu()) {
48 [&](
const int2 texel) { output.store_pixel(texel, color); });
64 ntype.
ui_description =
"Returns an image with the given size and constant color";
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, const bNode &node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
T get_single_value_default() const
NodeOperation(Context &context, const bNode &node)
void node_register_type(bNodeType &ntype)
ColorSceneLinear4f< eAlpha::Premultiplied > Color
void parallel_for(const int2 range, const Function &function)
T max(const T &a, const T &b)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
void GPU_texture_clear(gpu::Texture *texture, eGPUDataFormat data_format, const void *data)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
NodeDeclareFunction declare