Blender Git Loki

Git Commits -> Revision 37933cb

Revision 37933cb by Sergey Sharybin (master)
July 29, 2016, 20:19 (GMT)
Cycles: Add fundamentals to test constant folding

This commit adds some easy to use way to check whether the graph
was properly optimized. The idea is based on using mock glog sync
which keeps track on all messages and expects specific log message
to appear in the logging.

This means each optimization step should report that it optimized
something (specifying what exactly was optimized) and what was used
for optimization.

There's also some ease-ish way to define shader networks which we
might want to make a bit more global and available for all tests
in the future.

For now only RGBToBW node is covered as an example, really hope
to get help from active guys in the community to finish covering
all existing optimization cases. Ready to fix any possible issues
with builder when needed tho :)

Commit Details:

Full Hash: 37933cb048b050624c32ebaa0ac91636dec1c557
Parent Commit: ac655be
Lines Changed: +180, -0

1 Added Path:

/intern/cycles/test/render_graph_finalize_test.cpp (+149, -0) (View)

2 Modified Paths:

/intern/cycles/render/constant_fold.cpp (+2, -0) (Diff)
/intern/cycles/test/CMakeLists.txt (+29, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021