diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-16 15:00:05 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-16 15:00:05 +0300 |
commit | b406b6717f976bd438930fc6f91d67df19652f98 (patch) | |
tree | 02f8a0cff0317b29d0f3aab07caf03fbc0934709 /source/blender/compositor/operations/COM_SetColorOperation.cc | |
parent | 94084b2d3c5d151dc6ab19c9868813ac5eacf336 (diff) |
Compositor: Full frame RGB node
Adds full frame implementation to RGB node operation.
No functional changes.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D11593
Diffstat (limited to 'source/blender/compositor/operations/COM_SetColorOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_SetColorOperation.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_SetColorOperation.cc b/source/blender/compositor/operations/COM_SetColorOperation.cc index dbe45fa60db..6cefab83848 100644 --- a/source/blender/compositor/operations/COM_SetColorOperation.cc +++ b/source/blender/compositor/operations/COM_SetColorOperation.cc @@ -24,6 +24,7 @@ SetColorOperation::SetColorOperation() { this->addOutputSocket(DataType::Color); flags.is_set_operation = true; + flags.is_fullframe_operation = true; } void SetColorOperation::executePixelSampled(float output[4], @@ -41,4 +42,14 @@ void SetColorOperation::determineResolution(unsigned int resolution[2], resolution[1] = preferredResolution[1]; } +void SetColorOperation::update_memory_buffer(MemoryBuffer *output, + const rcti &output_area, + Span<MemoryBuffer *> UNUSED(inputs), + ExecutionSystem &UNUSED(exec_system)) +{ + BLI_assert(output->is_a_single_elem()); + float *out_elem = output->get_elem(output_area.xmin, output_area.ymin); + copy_v4_v4(out_elem, m_color); +} + } // namespace blender::compositor |