Blender
V4.3
source
blender
compositor
realtime_compositor
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
9
namespace
blender::realtime_compositor
{
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. */
16
struct
InputRealizationOptions
{
17
/* The input should be realized on the operation domain of the operation. */
18
bool
realize_on_operation_domain
: 1;
19
};
20
21
/* ------------------------------------------------------------------------------------------------
22
* Input Descriptor
23
*
24
* A class that describes an input of an operation. */
25
class
InputDescriptor
{
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. */
30
ResultType
type
;
31
/* The options that specify how the input should be realized. */
32
InputRealizationOptions
realization_options
= {
true
};
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. */
36
int
domain_priority
= 0;
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. */
42
bool
expects_single_value
=
false
;
43
};
44
45
}
// namespace blender::realtime_compositor
COM_result.hh
blender::realtime_compositor::InputDescriptor
Definition
COM_input_descriptor.hh:25
blender::realtime_compositor::InputDescriptor::expects_single_value
bool expects_single_value
Definition
COM_input_descriptor.hh:42
blender::realtime_compositor::InputDescriptor::domain_priority
int domain_priority
Definition
COM_input_descriptor.hh:36
blender::realtime_compositor::InputDescriptor::realization_options
InputRealizationOptions realization_options
Definition
COM_input_descriptor.hh:32
blender::realtime_compositor::InputDescriptor::type
ResultType type
Definition
COM_input_descriptor.hh:30
blender::realtime_compositor
Definition
BKE_node.hh:80
blender::realtime_compositor::ResultType
ResultType
Definition
COM_result.hh:21
blender::realtime_compositor::InputRealizationOptions
Definition
COM_input_descriptor.hh:16
blender::realtime_compositor::InputRealizationOptions::realize_on_operation_domain
bool realize_on_operation_domain
Definition
COM_input_descriptor.hh:18
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0