Blender Git Loki
Git Commits -> Revision cf8843a
Revision cf8843a by Sergey Sharybin (cycles-x) February 16, 2021, 11:42 (GMT) |
Cycles: Boiler plate code for the new split kernel functions The implementation of kernels places in the kernel/integrator folder to make some distinction between new code being written and the existing. Currently, all the kernels have a single KernelGlobals argument and an empty implementation. It would be nice if there is a way to have a minimal and standard arguments, as it simplifies things in the future. The new "section" of code is marked as such. Not sure if it's helping or not, but kind of feels it makes it easier to see functions which are to be removed or, at least, re-evaluated. The way how kernels are defined and declared follows the legacy macro, which I'm not huge fan of, but don't feel like looking into more clear ways of replacing them is a good time investment at this time. It is all localized, and doesn't matter too much for the actual code of the kernels implementation. |
Commit Details:
Full Hash: cf8843aafdd707247500fdd50363588d8e9c64d1
Parent Commit: 3585f26
Lines Changed: +229, -0
7 Added Paths:
/intern/cycles/kernel/integrator/kernel_generate_camera_rays.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_intersect_closest.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_intersect_shadow.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_shadow.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_subsurface.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_surface.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_volume.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_intersect_closest.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_intersect_shadow.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_shadow.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_subsurface.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_surface.h (+23, -0) (View)
/intern/cycles/kernel/integrator/kernel_volume.h (+23, -0) (View)