|
Blender V5.3
|
#include <gtest/gtest.h>#include "device/device.h"#include "scene/scene.h"#include "scene/shader_graph.h"#include "scene/shader_nodes.h"#include "util/array.h"#include "util/log.h"#include "util/stats.h"#include "util/string.h"#include "util/vector.h"Go to the source code of this file.
Classes | |
| class | CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T > |
| class | CCL_NAMESPACE_BEGIN::ShaderGraphBuilder |
| class | CCL_NAMESPACE_BEGIN::ScopedMockLog |
| class | RenderGraph |
Namespaces | |
| namespace | CCL_NAMESPACE_BEGIN |
Functions | |
| TEST_F (RenderGraph, deduplicate_deep) | |
| TEST_F (RenderGraph, constant_fold_rgb_to_bw) | |
| TEST_F (RenderGraph, constant_fold_emission1) | |
| TEST_F (RenderGraph, constant_fold_emission2) | |
| TEST_F (RenderGraph, constant_fold_background1) | |
| TEST_F (RenderGraph, constant_fold_background2) | |
| TEST_F (RenderGraph, constant_fold_shader_add) | |
| TEST_F (RenderGraph, constant_fold_shader_mix) | |
| TEST_F (RenderGraph, constant_fold_invert) | |
| TEST_F (RenderGraph, constant_fold_invert_fac_0) | |
| TEST_F (RenderGraph, constant_fold_invert_fac_0_const) | |
| TEST_F (RenderGraph, constant_fold_mix_add) | |
| TEST_F (RenderGraph, constant_fold_mix_add_clamp) | |
| TEST_F (RenderGraph, constant_fold_part_mix_dodge_no_fac_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_light_no_fac_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_burn_no_fac_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_blend_clamped_no_fac_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_blend) | |
| TEST_F (RenderGraph, constant_fold_part_mix_sub_same_fac_bad) | |
| TEST_F (RenderGraph, constant_fold_part_mix_sub_same_fac_1) | |
| static void | build_mix_partial_test_graph (ShaderGraphBuilder &builder, NodeMix type, const float3 constval) |
| TEST_F (RenderGraph, constant_fold_part_mix_add_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_sub_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_mul_1) | |
| TEST_F (RenderGraph, constant_fold_part_mix_div_1) | |
| TEST_F (RenderGraph, constant_fold_part_mix_mul_0) | |
| TEST_F (RenderGraph, constant_fold_part_mix_div_0) | |
| TEST_F (RenderGraph, constant_fold_separate_combine_rgb) | |
| TEST_F (RenderGraph, constant_fold_separate_combine_xyz) | |
| TEST_F (RenderGraph, constant_fold_separate_combine_hsv) | |
| TEST_F (RenderGraph, constant_fold_gamma) | |
| TEST_F (RenderGraph, constant_fold_gamma_part_0) | |
| TEST_F (RenderGraph, constant_fold_gamma_part_1) | |
| TEST_F (RenderGraph, constant_fold_bright_contrast) | |
| TEST_F (RenderGraph, constant_fold_blackbody) | |
| TEST_F (RenderGraph, constant_fold_math) | |
| TEST_F (RenderGraph, constant_fold_math_clamp) | |
| static void | build_math_partial_test_graph (ShaderGraphBuilder &builder, NodeMathType type, const float constval) |
| TEST_F (RenderGraph, constant_fold_part_math_add_0) | |
| TEST_F (RenderGraph, constant_fold_part_math_sub_0) | |
| TEST_F (RenderGraph, constant_fold_part_math_mul_1) | |
| TEST_F (RenderGraph, constant_fold_part_math_div_1) | |
| TEST_F (RenderGraph, constant_fold_part_math_mul_0) | |
| TEST_F (RenderGraph, constant_fold_part_math_div_0) | |
| TEST_F (RenderGraph, constant_fold_part_math_pow_0) | |
| TEST_F (RenderGraph, constant_fold_part_math_pow_1) | |
| TEST_F (RenderGraph, constant_fold_vector_math) | |
| static void | build_vecmath_partial_test_graph (ShaderGraphBuilder &builder, NodeVectorMathType type, const float3 constval) |
| TEST_F (RenderGraph, constant_fold_part_vecmath_add_0) | |
| TEST_F (RenderGraph, constant_fold_part_vecmath_sub_0) | |
| TEST_F (RenderGraph, constant_fold_part_vecmath_cross_0) | |
| TEST_F (RenderGraph, constant_fold_bump) | |
| TEST_F (RenderGraph, constant_fold_bump_no_input) | |
| template<class T> | |
| void | init_test_curve (array< T > &buffer, T start, T end, const int steps) |
| void | init_test_curve (array< packed_float3 > &buffer, const float3 start, const float3 end, const int steps) |
| TEST_F (RenderGraph, constant_fold_rgb_curves) | |
| TEST_F (RenderGraph, constant_fold_rgb_curves_fac_0) | |
| TEST_F (RenderGraph, constant_fold_rgb_curves_fac_0_const) | |
| TEST_F (RenderGraph, constant_fold_vector_curves) | |
| TEST_F (RenderGraph, constant_fold_vector_curves_fac_0) | |
| TEST_F (RenderGraph, constant_fold_rgb_ramp) | |
| TEST_F (RenderGraph, constant_fold_rgb_ramp_flat) | |
| TEST_F (RenderGraph, constant_fold_convert_float_color_float) | |
| TEST_F (RenderGraph, constant_fold_convert_color_vector_color) | |
| TEST_F (RenderGraph, constant_fold_convert_color_float_color) | |
| TEST_F (RenderGraph, stochastic_sample_math_multiply) | |
| TEST_F (RenderGraph, not_stochastic_sample_math_power) | |
| TEST_F (RenderGraph, stochastic_sample_principled_volume_mix) | |
|
static |
Definition at line 1031 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), and NODE_MATH_ADD.
Referenced by build_math_partial_test_graph(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 652 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), and NODE_MIX_ADD.
Referenced by build_mix_partial_test_graph(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 1192 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), and NODE_VECTOR_MATH_ADD.
Referenced by build_vecmath_partial_test_graph(), TEST_F(), TEST_F(), and TEST_F().
| void init_test_curve | ( | array< packed_float3 > & | buffer, |
| const float3 | start, | ||
| const float3 | end, | ||
| const int | steps ) |
Definition at line 1295 of file render_graph_finalize_test.cpp.
References init_test_curve(), mix, and array< T, alignment >::resize().
Definition at line 1286 of file render_graph_finalize_test.cpp.
References init_test_curve(), mix, array< T, alignment >::resize(), and T.
Referenced by init_test_curve(), init_test_curve(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_background1 | ) |
Definition at line 322 of file render_graph_finalize_test.cpp.
References log, TEST_F(), and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_background2 | ) |
Definition at line 333 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_blackbody | ) |
Definition at line 973 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_bright_contrast | ) |
Definition at line 956 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_bump | ) |
Definition at line 1262 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_bump_no_input | ) |
Definition at line 1277 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_color_float_color | ) |
Definition at line 1521 of file render_graph_finalize_test.cpp.
References log, NODE_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_color_vector_color | ) |
Definition at line 1500 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_VECTOR_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_float_color_float | ) |
Definition at line 1482 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_emission1 | ) |
Definition at line 296 of file render_graph_finalize_test.cpp.
References log, TEST_F(), and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_emission2 | ) |
Definition at line 307 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma | ) |
Definition at line 884 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma_part_0 | ) |
Definition at line 900 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_ADD, TEST_F(), and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma_part_1 | ) |
Definition at line 928 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_ADD, one_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert | ) |
Definition at line 399 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert_fac_0 | ) |
Definition at line 416 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert_fac_0_const | ) |
Definition at line 432 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_math | ) |
Definition at line 994 of file render_graph_finalize_test.cpp.
References log, NODE_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_math_clamp | ) |
Definition at line 1012 of file render_graph_finalize_test.cpp.
References log, NODE_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_mix_add | ) |
Definition at line 449 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_MIX_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_mix_add_clamp | ) |
Definition at line 469 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_MIX_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_add_0 | ) |
Definition at line 1061 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_div_0 | ) |
Definition at line 1132 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_DIVIDE, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_div_1 | ) |
Definition at line 1103 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_DIVIDE, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_mul_0 | ) |
Definition at line 1117 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_MULTIPLY, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_mul_1 | ) |
Definition at line 1089 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_MULTIPLY, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_pow_0 | ) |
Definition at line 1146 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_POWER, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_pow_1 | ) |
Definition at line 1160 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_POWER, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_sub_0 | ) |
Definition at line 1075 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, NODE_MATH_SUBTRACT, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_add_0 | ) |
Definition at line 709 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_blend | ) |
Definition at line 574 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_BLEND, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_blend_clamped_no_fac_0 | ) |
Definition at line 552 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_BLEND, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_burn_no_fac_0 | ) |
Definition at line 531 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_BURN, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_div_0 | ) |
Definition at line 794 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_DIV, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_div_1 | ) |
Definition at line 759 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_DIV, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_dodge_no_fac_0 | ) |
Definition at line 489 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_DODGE, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_light_no_fac_0 | ) |
Definition at line 510 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_LIGHT, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_mul_0 | ) |
Definition at line 775 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_MUL, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_mul_1 | ) |
Definition at line 742 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_MUL, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_0 | ) |
Definition at line 726 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), NODE_MIX_SUB, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_same_fac_1 | ) |
Definition at line 632 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_SUB, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_same_fac_bad | ) |
Definition at line 612 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_SUB, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_add_0 | ) |
Definition at line 1219 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), NODE_VECTOR_MATH_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_cross_0 | ) |
Definition at line 1247 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), NODE_VECTOR_MATH_CROSS_PRODUCT, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_sub_0 | ) |
Definition at line 1233 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), NODE_VECTOR_MATH_SUBTRACT, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves | ) |
Definition at line 1311 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves_fac_0 | ) |
Definition at line 1334 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves_fac_0_const | ) |
Definition at line 1357 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_ramp | ) |
Definition at line 1426 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), NODE_MIX_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_ramp_flat | ) |
Definition at line 1454 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), NODE_MIX_ADD, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_to_bw | ) |
Definition at line 278 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_hsv | ) |
Definition at line 860 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_COMBSEP_COLOR_HSV, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_rgb | ) |
Definition at line 812 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_COMBSEP_COLOR_RGB, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_xyz | ) |
Definition at line 836 of file render_graph_finalize_test.cpp.
References log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_shader_add | ) |
Definition at line 347 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_shader_mix | ) |
Definition at line 371 of file render_graph_finalize_test.cpp.
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_curves | ) |
Definition at line 1380 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_curves_fac_0 | ) |
Definition at line 1403 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and TEST_F().
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_math | ) |
Definition at line 1174 of file render_graph_finalize_test.cpp.
References log, make_float3(), NODE_VECTOR_MATH_SUBTRACT, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| deduplicate_deep | ) |
Definition at line 247 of file render_graph_finalize_test.cpp.
References EXPECT_EQ, log, NODE_MIX_BLEND, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| not_stochastic_sample_math_power | ) |
Definition at line 1560 of file render_graph_finalize_test.cpp.
References log, NODE_MATH_POWER, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| stochastic_sample_math_multiply | ) |
Definition at line 1541 of file render_graph_finalize_test.cpp.
References log, NODE_MATH_MULTIPLY, and TEST_F().
| TEST_F | ( | RenderGraph | , |
| stochastic_sample_principled_volume_mix | ) |
Definition at line 1579 of file render_graph_finalize_test.cpp.