Blender  V3.3
integrator_render_scheduler_test.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #include "testing/testing.h"
5 
7 
9 
11 {
15 }
16 
17 TEST(IntegratorRenderScheduler, calculate_resolution_for_divider)
18 {
19  EXPECT_EQ(calculate_resolution_for_divider(1920, 1080, 1), 1440);
20  EXPECT_EQ(calculate_resolution_for_divider(1920, 1080, 2), 720);
21  EXPECT_EQ(calculate_resolution_for_divider(1920, 1080, 4), 360);
22 }
23 
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
CCL_NAMESPACE_BEGIN TEST(IntegratorRenderScheduler, calculate_resolution_divider_for_resolution)
int calculate_resolution_divider_for_resolution(int width, int height, int resolution)
int calculate_resolution_for_divider(int width, int height, int resolution_divider)