Blender  V3.3
COM_Enums.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. */
3 
4 #pragma once
5 
6 #include "COM_defines.h"
7 
8 #include <ostream>
9 
10 struct rcti;
11 
12 namespace blender::compositor {
13 
19 enum class eCompositorQuality {
21  High = 0,
23  Medium = 1,
25  Low = 2,
26 };
27 
32 enum class eCompositorPriority {
34  High = 2,
36  Medium = 1,
38  Low = 0,
39 };
40 
45 enum class eWorkPackageState {
49  NotScheduled = 0,
53  Scheduled = 1,
57  Executed = 2,
58 };
59 
64 enum class eWorkPackageType {
68  Tile = 0,
72  CustomFunction = 1
73 };
74 
75 enum class PixelSampler {
76  Nearest = 0,
77  Bilinear = 1,
78  Bicubic = 2,
79 };
81 
82 std::ostream &operator<<(std::ostream &os, const eCompositorPriority &priority);
83 std::ostream &operator<<(std::ostream &os, const eWorkPackageState &execution_state);
84 
85 } // 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
eCompositorQuality
Possible quality settings.
Definition: COM_Enums.h:19
eWorkPackageType
Work type to execute.
Definition: COM_Enums.h:64
@ NotScheduled
chunk is not yet scheduled
@ Scheduled
chunk is scheduled, but not yet executed
@ CustomFunction
Executes a custom function.
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