Blender Git Loki

Git Commits -> Revision 64003fa

Revision 64003fa by Michael Jones (master)
November 16, 2021, 13:42 (GMT)
Cycles: Adapt volumetric lambda functions to work on MSL

This patch adapts the existing volumetric read/write lambda functions for Metal. Lambda expressions are not supported on MSL, so two new macros `VOLUME_READ_LAMBDA` and `VOLUME_WRITE_LAMBDA` have been defined with a default implementation which, on Metal, is overridden to use inline function objects.

This patch also removes the last remaining mention of the now-unused `ccl_addr_space`.

Ref T92212

Reviewed By: leesonw

Maniphest Tasks: T92212

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

Commit Details:

Full Hash: 64003fa4b0b1699998a5b048d980eb775d547d8d
Parent Commit: 85ac9b8
Committed By: Michael Jones
Lines Changed: +47, -31

5 Modified Paths:

/intern/cycles/kernel/device/metal/compat.h (+25, -0) (Diff)
/intern/cycles/kernel/integrator/shade_shadow.h (+2, -2) (Diff)
/intern/cycles/kernel/integrator/shade_volume.h (+6, -8) (Diff)
/intern/cycles/kernel/integrator/volume_stack.h (+14, -14) (Diff)
/intern/cycles/kernel/types.h (+0, -7) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021