Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2022-09-08 20:31:44 +0300
committerPatrick Mours <pmours@nvidia.com>2022-09-09 16:47:37 +0300
commit8611c37f975737efe0d159822edfc21733268f51 (patch)
treee7d7ce6b36fe7008c26b9fee5d90f906fe4faf5c /intern/cycles/scene/osl.cpp
parentef7c9e793ec5331ac694eec9336565bd2254c406 (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/scene/osl.cpp')
-rw-r--r--intern/cycles/scene/osl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/scene/osl.cpp b/intern/cycles/scene/osl.cpp
index 7c8d9bcd3e2..f0246b5b40e 100644
--- a/intern/cycles/scene/osl.cpp
+++ b/intern/cycles/scene/osl.cpp
@@ -298,7 +298,7 @@ void OSLShaderManager::shading_system_init()
const int nraytypes = sizeof(raytypes) / sizeof(raytypes[0]);
ss_shared->attribute("raytypes", TypeDesc(TypeDesc::STRING, nraytypes), raytypes);
- OSLShader::register_closures((OSLShadingSystem *)ss_shared);
+ OSLRenderServices::register_closures(ss_shared);
loaded_shaders.clear();
}