blob: c5375c21b152e2c5f487108123fcd78c9847de6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2022 Blender Foundation. All rights reserved. */
#include "VPC_operation.hh"
#include "VPC_processor_operation.hh"
#include "VPC_result.hh"
namespace blender::viewport_compositor {
const StringRef ProcessorOperation::input_identifier = StringRef("Input");
const StringRef ProcessorOperation::output_identifier = StringRef("Output");
Result &ProcessorOperation::get_result()
{
return Operation::get_result(output_identifier);
}
void ProcessorOperation::map_input_to_result(Result *result)
{
Operation::map_input_to_result(input_identifier, result);
}
void ProcessorOperation::evaluate_input_processors()
{
}
Result &ProcessorOperation::get_input()
{
return Operation::get_input(input_identifier);
}
void ProcessorOperation::switch_result_mapped_to_input(Result *result)
{
Operation::switch_result_mapped_to_input(input_identifier, result);
}
void ProcessorOperation::populate_result(Result result)
{
Operation::populate_result(output_identifier, result);
}
void ProcessorOperation::declare_input_descriptor(InputDescriptor descriptor)
{
Operation::declare_input_descriptor(input_identifier, descriptor);
}
InputDescriptor &ProcessorOperation::get_input_descriptor()
{
return Operation::get_input_descriptor(input_identifier);
}
} // namespace blender::viewport_compositor
|