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 /.clang-format | |
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 '.clang-format')
-rw-r--r-- | .clang-format | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 7e88e6d1cb1..72add4594a4 100644 --- a/.clang-format +++ b/.clang-format @@ -273,5 +273,5 @@ StatementMacros: - PyObject_VAR_HEAD - ccl_gpu_kernel_postfix -MacroBlockBegin: "^BSDF_CLOSURE_CLASS_BEGIN$" -MacroBlockEnd: "^BSDF_CLOSURE_CLASS_END$" +MacroBlockBegin: "^OSL_CLOSURE_STRUCT_BEGIN$" +MacroBlockEnd: "^OSL_CLOSURE_STRUCT_END$" |