Blender
V5.0
intern
cycles
test
integrator_render_scheduler_test.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#include <gtest/gtest.h>
6
7
#include "
integrator/render_scheduler.h
"
8
9
CCL_NAMESPACE_BEGIN
10
11
TEST
(IntegratorRenderScheduler,
calculate_resolution_divider_for_resolution
)
12
{
13
EXPECT_EQ
(
calculate_resolution_divider_for_resolution
(1920, 1080, 1920), 1);
14
EXPECT_EQ
(
calculate_resolution_divider_for_resolution
(1920, 1080, 960), 2);
15
EXPECT_EQ
(
calculate_resolution_divider_for_resolution
(1920, 1080, 480), 4);
16
}
17
18
TEST
(IntegratorRenderScheduler,
calculate_resolution_for_divider
)
19
{
20
EXPECT_EQ
(
calculate_resolution_for_divider
(1920, 1080, 1), 1440);
21
EXPECT_EQ
(
calculate_resolution_for_divider
(1920, 1080, 2), 720);
22
EXPECT_EQ
(
calculate_resolution_for_divider
(1920, 1080, 4), 360);
23
}
24
25
CCL_NAMESPACE_END
EXPECT_EQ
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
TEST
CCL_NAMESPACE_BEGIN TEST(IntegratorRenderScheduler, calculate_resolution_divider_for_resolution)
Definition
integrator_render_scheduler_test.cpp:11
CCL_NAMESPACE_BEGIN
Definition
python.cpp:37
calculate_resolution_divider_for_resolution
int calculate_resolution_divider_for_resolution(int width, int height, const int resolution)
Definition
render_scheduler.cpp:1292
calculate_resolution_for_divider
int calculate_resolution_for_divider(const int width, const int height, const int resolution_divider)
Definition
render_scheduler.cpp:1309
render_scheduler.h
Generated on
for Blender by
doxygen
1.16.1