Blender Git Loki
Git Commits -> Revision fadb6f3
Revision fadb6f3 by Brecht Van Lommel (master) May 3, 2019, 13:36 (GMT) |
Cleanup: refactor Cycles OSL texture handling This adds our own OSL texture handle, that has info for OIIO textures or our own custom texture types. A filename to handle hash map is used for lookups. This is efficient because it happens at OSL compile time, because the optimizer can figure out constant strings and replace them with texture handles. |
Commit Details:
Full Hash: fadb6f34662fb60e1a48c2c053c500f017206f27
Parent Commit: 08a44d2
Lines Changed: +308, -201
8 Modified Paths:
/intern/cycles/device/device_cpu.cpp (+11, -5) (Diff)
/intern/cycles/kernel/osl/osl_globals.h (+49, -0) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+194, -172) (Diff)
/intern/cycles/kernel/shaders/node_ies_light.osl (+2, -2) (Diff)
/intern/cycles/render/nodes.cpp (+4, -22) (Diff)
/intern/cycles/render/osl.cpp (+38, -0) (Diff)
/intern/cycles/render/osl.h (+3, -0) (Diff)
/intern/cycles/util/util_aligned_malloc.h (+7, -0) (Diff)
/intern/cycles/kernel/osl/osl_globals.h (+49, -0) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+194, -172) (Diff)
/intern/cycles/kernel/shaders/node_ies_light.osl (+2, -2) (Diff)
/intern/cycles/render/nodes.cpp (+4, -22) (Diff)
/intern/cycles/render/osl.cpp (+38, -0) (Diff)
/intern/cycles/render/osl.h (+3, -0) (Diff)
/intern/cycles/util/util_aligned_malloc.h (+7, -0) (Diff)