Blender  V3.3
COM_ConstantOperation.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. */
3 
4 #pragma once
5 
6 #include "COM_NodeOperation.h"
7 
8 namespace blender::compositor {
9 
10 /* TODO(manzanilla): After removing tiled implementation, implement a default #determine_resolution
11  * for all constant operations and make all initialization and deinitilization methods final. */
18  protected:
20 
21  public:
23 
25  virtual const float *get_constant_elem() = 0;
26  bool can_get_constant_elem() const;
27 
29  const rcti &area,
31 };
32 
33 } // namespace blender::compositor
void update_memory_buffer(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) final
virtual const float * get_constant_elem()=0
a MemoryBuffer contains access to the data of a chunk
NodeOperation contains calculation logic.
ccl_global KernelShaderEvalInput ccl_global float * output
static void area(int d1, int d2, int e1, int e2, float weights[2])
static bNodeSocketTemplate inputs[]