Blender Git Commit Log

Git Commits -> Revision 767d501

Revision 767d501 by Sergey Sharybin (cycles-x)
June 10, 2021, 16:13 (GMT)
Cycles X: De-duplicate shadow pass accessor kernel

The downside is that there is one extra if statement per pixel, but it
is probably unmeasurable because of other calculations involved. Could
not run actual numbers because it is not a function which is run often.

The upside is that it opens possibilities for ease support of passes
with optional alpha channel. For example, it will become useful for
shadow catcher pass denoising.

We can also now implement passes with divider for both RGB and RGBA
destinations and get rid of an exception in the pass Destination
constructor.

Differential Revision: https://developer.blender.org/D11573

Commit Details:

Full Hash: 767d501e2859c3acd854716ddd7f330d99be1479
Parent Commit: 16cbd0d
Lines Changed: +61, -51

10 Modified Paths:

/intern/cycles/device/device_kernel.cpp (+2, -4) (Diff)
/intern/cycles/integrator/pass_accessor.cpp (+6, -3) (Diff)
/intern/cycles/integrator/pass_accessor.h (+5, -3) (Diff)
/intern/cycles/integrator/pass_accessor_cpu.cpp (+4, -3) (Diff)
/intern/cycles/integrator/pass_accessor_cpu.h (+3, -2) (Diff)
/intern/cycles/integrator/pass_accessor_gpu.cpp (+4, -3) (Diff)
/intern/cycles/integrator/pass_accessor_gpu.h (+3, -2) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+2, -2) (Diff)
/intern/cycles/kernel/kernel_film.h (+26, -27) (Diff)
/intern/cycles/kernel/kernel_types.h (+6, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021