Compositor: Full frame Value node
Adds full frame implementation to Value node operation. No functional changes. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11594
This commit is contained in:
@@ -24,6 +24,7 @@ SetValueOperation::SetValueOperation()
|
||||
{
|
||||
this->addOutputSocket(DataType::Value);
|
||||
flags.is_set_operation = true;
|
||||
flags.is_fullframe_operation = true;
|
||||
}
|
||||
|
||||
void SetValueOperation::executePixelSampled(float output[4],
|
||||
@@ -41,4 +42,14 @@ void SetValueOperation::determineResolution(unsigned int resolution[2],
|
||||
resolution[1] = preferredResolution[1];
|
||||
}
|
||||
|
||||
void SetValueOperation::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);
|
||||
*out_elem = m_value;
|
||||
}
|
||||
|
||||
} // namespace blender::compositor
|
||||
|
@@ -51,6 +51,10 @@ class SetValueOperation : public NodeOperation {
|
||||
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
|
||||
void determineResolution(unsigned int resolution[2],
|
||||
unsigned int preferredResolution[2]) override;
|
||||
void update_memory_buffer(MemoryBuffer *output,
|
||||
const rcti &output_area,
|
||||
Span<MemoryBuffer *> inputs,
|
||||
ExecutionSystem &exec_system) override;
|
||||
};
|
||||
|
||||
} // namespace blender::compositor
|
||||
|
Reference in New Issue
Block a user