Blender V4.3
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
7
8#include "COM_domain.hh"
9
11
12Domain::Domain(const int2 &size) : size(size), transformation(float3x3::identity()) {}
13
14Domain::Domain(const int2 &size, const float3x3 &transformation)
15 : size(size), transformation(transformation)
16{
17}
18
19void Domain::transform(const float3x3 &input_transformation)
20{
21 transformation = input_transformation * transformation;
22}
23
28
29bool operator==(const Domain &a, const Domain &b)
30{
31 return a.size == b.size && a.transformation == b.transformation;
32}
33
34bool operator!=(const Domain &a, const Domain &b)
35{
36 return !(a == b);
37}
38
39} // namespace blender::realtime_compositor
void transform(const float3x3 &input_transformation)
Definition domain.cc:19
local_group_size(16, 16) .push_constant(Type b
bool operator==(const BokehKernelKey &a, const BokehKernelKey &b)
bool operator!=(const Domain &a, const Domain &b)
Definition domain.cc:34
VecBase< int32_t, 2 > int2