diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /intern/cycles/kernel/kernel_profiling.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'intern/cycles/kernel/kernel_profiling.h')
-rw-r--r-- | intern/cycles/kernel/kernel_profiling.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/intern/cycles/kernel/kernel_profiling.h b/intern/cycles/kernel/kernel_profiling.h index a46d6376473..780830879d8 100644 --- a/intern/cycles/kernel/kernel_profiling.h +++ b/intern/cycles/kernel/kernel_profiling.h @@ -26,15 +26,21 @@ CCL_NAMESPACE_BEGIN #ifdef __KERNEL_CPU__ # define PROFILING_INIT(kg, event) ProfilingHelper profiling_helper(&kg->profiler, event) # define PROFILING_EVENT(event) profiling_helper.set_event(event) -# define PROFILING_SHADER(shader) if((shader) != SHADER_NONE) { profiling_helper.set_shader((shader) & SHADER_MASK); } -# define PROFILING_OBJECT(object) if((object) != PRIM_NONE) { profiling_helper.set_object(object); } +# define PROFILING_SHADER(shader) \ + if ((shader) != SHADER_NONE) { \ + profiling_helper.set_shader((shader)&SHADER_MASK); \ + } +# define PROFILING_OBJECT(object) \ + if ((object) != PRIM_NONE) { \ + profiling_helper.set_object(object); \ + } #else # define PROFILING_INIT(kg, event) # define PROFILING_EVENT(event) # define PROFILING_SHADER(shader) # define PROFILING_OBJECT(object) -#endif /* __KERNEL_CPU__ */ +#endif /* __KERNEL_CPU__ */ CCL_NAMESPACE_END -#endif /* __KERNEL_PROFILING_H__ */ +#endif /* __KERNEL_PROFILING_H__ */ |