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

3 Modified Paths:

/intern/cycles/kernel/kernel_compat_cuda.h (+4, -0) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+1, -0) (Diff)
/intern/cycles/util/util_defines.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021