Blender V4.3
COM_input_descriptor.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "COM_result.hh"
8
10
11/* ------------------------------------------------------------------------------------------------
12 * Input Realization Options
13 *
14 * A bit-field that specifies how the input should be realized before execution. See the discussion
15 * in COM_domain.hh for more information on what realization mean. */
17 /* The input should be realized on the operation domain of the operation. */
19};
20
21/* ------------------------------------------------------------------------------------------------
22 * Input Descriptor
23 *
24 * A class that describes an input of an operation. */
26 public:
27 /* The type of input. This may be different that the type of result that the operation will
28 * receive for the input, in which case, an implicit conversion operation will be added as an
29 * input processor to convert it to the required type. */
31 /* The options that specify how the input should be realized. */
33 /* The priority of the input for determining the operation domain. The non-single value input
34 * with the highest priority will be used to infer the operation domain, the highest priority
35 * being zero. See the discussion in COM_domain.hh for more information. */
37 /* If true, the input expects a single value, and if a non-single value is provided, a default
38 * single value will be used instead, see the get_<type>_value_default methods in the Result
39 * class. It follows that this also implies no realization, because we don't need to realize a
40 * result that will be discarded anyways. If false, the input can work with both single and
41 * non-single values. */
43};
44
45} // namespace blender::realtime_compositor