Blender  V3.3
COM_Enums.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. */
3 
4 #include "COM_Enums.h"
5 
6 namespace blender::compositor {
7 
9 {
10  switch (sampler) {
12  break;
14  area.xmax += 1;
15  area.ymax += 1;
16  break;
18  area.xmin -= 1;
19  area.xmax += 2;
20  area.ymin -= 1;
21  area.ymax += 2;
22  break;
23  }
24 }
25 
26 std::ostream &operator<<(std::ostream &os, const eCompositorPriority &priority)
27 {
28  switch (priority) {
30  os << "Priority::High";
31  break;
32  }
34  os << "Priority::Medium";
35  break;
36  }
38  os << "Priority::Low";
39  break;
40  }
41  }
42  return os;
43 }
44 
45 std::ostream &operator<<(std::ostream &os, const eWorkPackageState &execution_state)
46 {
47  switch (execution_state) {
49  os << "ExecutionState::NotScheduled";
50  break;
51  }
53  os << "ExecutionState::Scheduled";
54  break;
55  }
57  os << "ExecutionState::Executed";
58  break;
59  }
60  }
61  return os;
62 }
63 
64 } // namespace blender::compositor
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
eWorkPackageState
the execution state of a chunk in an ExecutionGroup
Definition: COM_Enums.h:45
eCompositorPriority
Possible priority settings.
Definition: COM_Enums.h:32
@ NotScheduled
chunk is not yet scheduled
@ Scheduled
chunk is scheduled, but not yet executed
static void area(int d1, int d2, int e1, int e2, float weights[2])
void expand_area_for_sampler(rcti &area, PixelSampler sampler)
Definition: COM_Enums.cc:8
std::ostream & operator<<(std::ostream &os, const eCompositorPriority &priority)
Definition: COM_Enums.cc:26