Blender  V3.3
COM_ConstantOperation.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. */
3 
5 
6 namespace blender::compositor {
7 
9 {
13 }
14 
16 {
18 }
19 
21  const rcti &area,
23 {
24  BLI_assert(output->is_a_single_elem());
25  const float *constant = get_constant_elem();
26  float *out = output->get_elem(area.xmin, area.ymin);
27  memcpy(out, constant, output->get_elem_bytes_len());
28 }
29 
30 } // namespace blender::compositor
#define BLI_assert(a)
Definition: BLI_assert.h:46
#define UNUSED(x)
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
ccl_global KernelShaderEvalInput ccl_global float * output
static void area(int d1, int d2, int e1, int e2, float weights[2])
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
static bNodeSocketTemplate inputs[]