Blender  V2.93
COM_Enums.cc
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2021, Blender Foundation.
17  */
18 
19 #include "COM_Enums.h"
20 
21 namespace blender::compositor {
22 
23 std::ostream &operator<<(std::ostream &os, const eCompositorPriority &priority)
24 {
25  switch (priority) {
27  os << "Priority::High";
28  break;
29  }
31  os << "Priority::Medium";
32  break;
33  }
35  os << "Priority::Low";
36  break;
37  }
38  }
39  return os;
40 }
41 
42 std::ostream &operator<<(std::ostream &os, const eWorkPackageState &execution_state)
43 {
44  switch (execution_state) {
46  os << "ExecutionState::NotScheduled";
47  break;
48  }
50  os << "ExecutionState::Scheduled";
51  break;
52  }
54  os << "ExecutionState::Executed";
55  break;
56  }
57  }
58  return os;
59 }
60 
61 } // namespace blender::compositor
eWorkPackageState
the execution state of a chunk in an ExecutionGroup
Definition: COM_Enums.h:58
eCompositorPriority
Possible priority settings.
Definition: COM_Enums.h:45
@ NotScheduled
chunk is not yet scheduled
@ Scheduled
chunk is scheduled, but not yet executed
std::ostream & operator<<(std::ostream &os, const eCompositorPriority &priority)
Definition: COM_Enums.cc:23