Blender Git Loki
Git Commits -> Revision fd397a7
Revision fd397a7 by Sergey Sharybin (master) August 8, 2017, 13:27 (GMT) |
Cycles: Add utility macro ccl_ref It is defined to & for CPU side compilation, and defined to an empty for any GPU platform. The idea here is to use this macro instead of #ifdef block with bunch of duplicated lines just to make it so CPU code is efficient. Eventually we might switch to references on CUDA as well, but that would require some intensive testing. |
Commit Details:
Full Hash: fd397a7d28666f1c3ee9cd85de5760825d62d28e
Parent Commit: 01ee885
Lines Changed: +6, -0