diff options
author | Patrick Mours <pmours@nvidia.com> | 2022-09-08 20:31:44 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2022-09-09 16:47:37 +0300 |
commit | 8611c37f975737efe0d159822edfc21733268f51 (patch) | |
tree | e7d7ce6b36fe7008c26b9fee5d90f906fe4faf5c /intern/cycles/kernel/osl/CMakeLists.txt | |
parent | ef7c9e793ec5331ac694eec9336565bd2254c406 (diff) |
Cycles: Generate OSL closures using macros and a template file
This has the advantage of being able to use information about the
existing OSL closures in various places without code duplication. In
addition, the setup code for all closures was moved to standalone
functions to avoid usage of virtual function calls in preparation for GPU
support.
This patch was split from D15902.
Differential Revision: https://developer.blender.org/D15917
Diffstat (limited to 'intern/cycles/kernel/osl/CMakeLists.txt')
-rw-r--r-- | intern/cycles/kernel/osl/CMakeLists.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/intern/cycles/kernel/osl/CMakeLists.txt b/intern/cycles/kernel/osl/CMakeLists.txt index 7570490be7c..b27bcb066fd 100644 --- a/intern/cycles/kernel/osl/CMakeLists.txt +++ b/intern/cycles/kernel/osl/CMakeLists.txt @@ -10,18 +10,14 @@ set(INC_SYS ) set(SRC - background.cpp - bsdf_diffuse_ramp.cpp - bsdf_phong_ramp.cpp - emissive.cpp - bssrdf.cpp closures.cpp services.cpp shader.cpp ) set(HEADER_SRC - closures.h + closures_setup.h + closures_template.h globals.h services.h shader.h |