From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: 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 --- intern/cycles/render/film.h | 92 ++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'intern/cycles/render/film.h') diff --git a/intern/cycles/render/film.h b/intern/cycles/render/film.h index 8330a4cf413..1cfa7c3b77d 100644 --- a/intern/cycles/render/film.h +++ b/intern/cycles/render/film.h @@ -31,69 +31,69 @@ class DeviceScene; class Scene; typedef enum FilterType { - FILTER_BOX, - FILTER_GAUSSIAN, - FILTER_BLACKMAN_HARRIS, + FILTER_BOX, + FILTER_GAUSSIAN, + FILTER_BLACKMAN_HARRIS, - FILTER_NUM_TYPES, + FILTER_NUM_TYPES, } FilterType; class Pass { -public: - PassType type; - int components; - bool filter; - bool exposure; - PassType divide_type; - string name; - - static void add(PassType type, vector& passes, const char* name = NULL); - static bool equals(const vector& A, const vector& B); - static bool contains(const vector& passes, PassType); + public: + PassType type; + int components; + bool filter; + bool exposure; + PassType divide_type; + string name; + + static void add(PassType type, vector &passes, const char *name = NULL); + static bool equals(const vector &A, const vector &B); + static bool contains(const vector &passes, PassType); }; class Film : public Node { -public: - NODE_DECLARE + public: + NODE_DECLARE - float exposure; - vector passes; - bool denoising_data_pass; - bool denoising_clean_pass; - bool denoising_prefiltered_pass; - int denoising_flags; - float pass_alpha_threshold; + float exposure; + vector passes; + bool denoising_data_pass; + bool denoising_clean_pass; + bool denoising_prefiltered_pass; + int denoising_flags; + float pass_alpha_threshold; - int pass_stride; - int denoising_data_offset; - int denoising_clean_offset; + int pass_stride; + int denoising_data_offset; + int denoising_clean_offset; - FilterType filter_type; - float filter_width; - size_t filter_table_offset; + FilterType filter_type; + float filter_width; + size_t filter_table_offset; - float mist_start; - float mist_depth; - float mist_falloff; + float mist_start; + float mist_depth; + float mist_falloff; - bool use_light_visibility; - bool use_sample_clamp; - CryptomatteType cryptomatte_passes; - int cryptomatte_depth; + bool use_light_visibility; + bool use_sample_clamp; + CryptomatteType cryptomatte_passes; + int cryptomatte_depth; - bool need_update; + bool need_update; - Film(); - ~Film(); + Film(); + ~Film(); - void device_update(Device *device, DeviceScene *dscene, Scene *scene); - void device_free(Device *device, DeviceScene *dscene, Scene *scene); + void device_update(Device *device, DeviceScene *dscene, Scene *scene); + void device_free(Device *device, DeviceScene *dscene, Scene *scene); - bool modified(const Film& film); - void tag_passes_update(Scene *scene, const vector& passes_); - void tag_update(Scene *scene); + bool modified(const Film &film); + void tag_passes_update(Scene *scene, const vector &passes_); + void tag_update(Scene *scene); }; CCL_NAMESPACE_END -#endif /* __FILM_H__ */ +#endif /* __FILM_H__ */ -- cgit v1.2.3