|
Blender V5.0
|
#include <gtest/gtest.h>#include "device/device.h"#include "scene/colorspace.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) |
| 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 |
|
static |
Definition at line 653 of file render_graph_finalize_test.cpp.
References NODE_MIX_ADD.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 1193 of file render_graph_finalize_test.cpp.
References NODE_VECTOR_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_background1 | ) |
Definition at line 323 of file render_graph_finalize_test.cpp.
References log, and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_background2 | ) |
Definition at line 334 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_blackbody | ) |
Definition at line 974 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_bright_contrast | ) |
Definition at line 957 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_bump | ) |
Definition at line 1263 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_bump_no_input | ) |
Definition at line 1278 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_color_float_color | ) |
Definition at line 1510 of file render_graph_finalize_test.cpp.
References log, and NODE_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_color_vector_color | ) |
Definition at line 1489 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_VECTOR_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_convert_float_color_float | ) |
Definition at line 1471 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_emission1 | ) |
Definition at line 297 of file render_graph_finalize_test.cpp.
References log, and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_emission2 | ) |
Definition at line 308 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma | ) |
Definition at line 885 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma_part_0 | ) |
Definition at line 901 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_ADD, and zero_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_gamma_part_1 | ) |
Definition at line 929 of file render_graph_finalize_test.cpp.
References log, NODE_MIX_ADD, and one_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert | ) |
Definition at line 400 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert_fac_0 | ) |
Definition at line 417 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_invert_fac_0_const | ) |
Definition at line 433 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_math | ) |
Definition at line 995 of file render_graph_finalize_test.cpp.
References log, and NODE_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_math_clamp | ) |
Definition at line 1013 of file render_graph_finalize_test.cpp.
References log, and NODE_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_mix_add | ) |
Definition at line 450 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_MIX_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_mix_add_clamp | ) |
Definition at line 470 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_MIX_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_add_0 | ) |
Definition at line 1062 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_div_0 | ) |
Definition at line 1133 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_DIVIDE.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_div_1 | ) |
Definition at line 1104 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_DIVIDE.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_mul_0 | ) |
Definition at line 1118 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_MULTIPLY.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_mul_1 | ) |
Definition at line 1090 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_MULTIPLY.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_pow_0 | ) |
Definition at line 1147 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_POWER.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_pow_1 | ) |
Definition at line 1161 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_POWER.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_math_sub_0 | ) |
Definition at line 1076 of file render_graph_finalize_test.cpp.
References build_math_partial_test_graph(), log, and NODE_MATH_SUBTRACT.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_add_0 | ) |
Definition at line 710 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_blend | ) |
Definition at line 575 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_BLEND.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_blend_clamped_no_fac_0 | ) |
Definition at line 553 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_BLEND.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_burn_no_fac_0 | ) |
Definition at line 532 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_BURN.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_div_0 | ) |
Definition at line 795 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_DIV.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_div_1 | ) |
Definition at line 760 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_DIV.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_dodge_no_fac_0 | ) |
Definition at line 490 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_DODGE.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_light_no_fac_0 | ) |
Definition at line 511 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_LIGHT.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_mul_0 | ) |
Definition at line 776 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_MUL.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_mul_1 | ) |
Definition at line 743 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_MUL.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_0 | ) |
Definition at line 727 of file render_graph_finalize_test.cpp.
References build_mix_partial_test_graph(), log, make_float3(), and NODE_MIX_SUB.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_same_fac_1 | ) |
Definition at line 633 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_SUB.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_mix_sub_same_fac_bad | ) |
Definition at line 613 of file render_graph_finalize_test.cpp.
References log, and NODE_MIX_SUB.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_add_0 | ) |
Definition at line 1220 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), and NODE_VECTOR_MATH_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_cross_0 | ) |
Definition at line 1248 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), and NODE_VECTOR_MATH_CROSS_PRODUCT.
| TEST_F | ( | RenderGraph | , |
| constant_fold_part_vecmath_sub_0 | ) |
Definition at line 1234 of file render_graph_finalize_test.cpp.
References build_vecmath_partial_test_graph(), log, make_float3(), and NODE_VECTOR_MATH_SUBTRACT.
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves | ) |
Definition at line 1300 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves_fac_0 | ) |
Definition at line 1323 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_curves_fac_0_const | ) |
Definition at line 1346 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_ramp | ) |
Definition at line 1415 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and NODE_MIX_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_ramp_flat | ) |
Definition at line 1443 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, make_float3(), and NODE_MIX_ADD.
| TEST_F | ( | RenderGraph | , |
| constant_fold_rgb_to_bw | ) |
Definition at line 279 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_hsv | ) |
Definition at line 861 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_COMBSEP_COLOR_HSV.
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_rgb | ) |
Definition at line 813 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_COMBSEP_COLOR_RGB.
| TEST_F | ( | RenderGraph | , |
| constant_fold_separate_combine_xyz | ) |
Definition at line 837 of file render_graph_finalize_test.cpp.
References log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_shader_add | ) |
Definition at line 348 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_shader_mix | ) |
Definition at line 372 of file render_graph_finalize_test.cpp.
References log.
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_curves | ) |
Definition at line 1369 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_curves_fac_0 | ) |
Definition at line 1392 of file render_graph_finalize_test.cpp.
References init_test_curve(), log, and make_float3().
| TEST_F | ( | RenderGraph | , |
| constant_fold_vector_math | ) |
Definition at line 1175 of file render_graph_finalize_test.cpp.
References log, make_float3(), and NODE_VECTOR_MATH_SUBTRACT.
| TEST_F | ( | RenderGraph | , |
| deduplicate_deep | ) |
Definition at line 248 of file render_graph_finalize_test.cpp.
References EXPECT_EQ(), log, and NODE_MIX_BLEND.
| TEST_F | ( | RenderGraph | , |
| not_stochastic_sample_math_power | ) |
Definition at line 1549 of file render_graph_finalize_test.cpp.
References log, and NODE_MATH_POWER.
| TEST_F | ( | RenderGraph | , |
| stochastic_sample_math_multiply | ) |
Definition at line 1530 of file render_graph_finalize_test.cpp.
References log, and NODE_MATH_MULTIPLY.
| TEST_F | ( | RenderGraph | , |
| stochastic_sample_principled_volume_mix | ) |
Definition at line 1568 of file render_graph_finalize_test.cpp.
References log.