Blender
V4.3
source
blender
compositor
realtime_compositor
intern
domain.cc
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
#include "
BLI_math_matrix_types.hh
"
6
#include "
BLI_math_vector_types.hh
"
7
8
#include "
COM_domain.hh
"
9
10
namespace
blender::realtime_compositor
{
11
12
Domain::Domain
(
const
int2
&size) : size(size), transformation(
float3x3
::identity()) {}
13
14
Domain::Domain
(
const
int2
&size,
const
float3x3
&transformation)
15
: size(size), transformation(transformation)
16
{
17
}
18
19
void
Domain::transform
(
const
float3x3
&input_transformation)
20
{
21
transformation = input_transformation *
transformation
;
22
}
23
24
Domain
Domain::identity
()
25
{
26
return
Domain
(
int2
(1),
float3x3::identity
());
27
}
28
29
bool
operator==
(
const
Domain
&a,
const
Domain
&
b
)
30
{
31
return
a.size ==
b
.size && a.transformation ==
b
.transformation;
32
}
33
34
bool
operator!=
(
const
Domain
&a,
const
Domain
&
b
)
35
{
36
return
!(a ==
b
);
37
}
38
39
}
// namespace blender::realtime_compositor
BLI_math_matrix_types.hh
BLI_math_vector_types.hh
COM_domain.hh
blender::realtime_compositor::Domain
Definition
COM_domain.hh:135
blender::realtime_compositor::Domain::identity
static Domain identity()
Definition
domain.cc:24
blender::realtime_compositor::Domain::transform
void transform(const float3x3 &input_transformation)
Definition
domain.cc:19
blender::realtime_compositor::Domain::Domain
Domain(const int2 &size)
Definition
domain.cc:12
blender::realtime_compositor::Domain::transformation
float3x3 transformation
Definition
COM_domain.hh:141
b
local_group_size(16, 16) .push_constant(Type b
Definition
compositor_morphological_distance_info.hh:16
blender::realtime_compositor
Definition
BKE_node.hh:80
blender::realtime_compositor::operator==
bool operator==(const BokehKernelKey &a, const BokehKernelKey &b)
Definition
bokeh_kernel.cc:42
blender::realtime_compositor::operator!=
bool operator!=(const Domain &a, const Domain &b)
Definition
domain.cc:34
blender::int2
VecBase< int32_t, 2 > int2
Definition
BLI_math_vector_types.hh:594
blender::MatBase< float, 3, 3 >
blender::MatBase< float, 3, 3 >::identity
static MatBase identity()
Definition
BLI_math_matrix_types.hh:450
blender::VecBase< int32_t, 2 >
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0