Blender Git Commit Log
Git Commits -> Revision 3f7014e
Revision 3f7014e by Aaron Carlisle (master) December 5, 2021, 22:47 (GMT) |
Shader Nodes: Declare nodes in their own namespace Follow up on rB1df8abff257030ba79bc23dc321f35494f4d91c5 This puts all static functions in geometry node files into a new namespace. This allows using unity build which can improve compile times significantly - The namespace name is derived from the file name. That makes it possible to write some tooling that checks the names later on. The filename extension (cc) is added to the namespace name as well. This also possibly simplifies tooling but also makes it more obvious that this namespace is specific to a file. - In the register function of every node, I added a namespace alias namespace `file_ns = blender::nodes::node_shader_*_cc`;. This avoids some duplication of the file name and may also simplify tooling, because this line is easy to detect. The name `file_ns` stands for "file namespace" and also indicates that this namespace corresponds to the current file. In the future some nodes will be split up to separate files and given their own namespace This will allow function names to be simplified similar to rBfab39440e94 Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D13480 |
Commit Details:
Full Hash: 3f7014ecc9d523997062eadd62888af5fc70a2b6
Parent Commit: 0a8a22f
Lines Changed: +890, -428
89 Modified Paths:
/source/blender/nodes/shader/nodes/node_shader_add_shader.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_attribute.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_background.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bevel.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_blackbody.cc (+10, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_brightness.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_diffuse.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glass.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glossy.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_refraction.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_toon.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_translucent.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_transparent.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_velvet.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bump.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_camera.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_clamp.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_curves.cc (+30, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_displacement.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_emission.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_fresnel.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_gamma.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_geometry.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hair_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_holdout.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hueSatVal.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ies_light.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_invert.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_layer_weight.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_light_falloff.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_light_path.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mapping.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+10, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_math.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mixRgb.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mix_shader.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal_map.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_object_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_aov.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_light.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_linestyle.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_material.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_world.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_rgb.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_script.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombHSV.cc (+25, -15) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc (+24, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc (+22, -22) (Diff)
/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_squeeze.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.cc (+12, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tangent.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_brick.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_checker.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_coord.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_gradient.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_image.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_magic.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc (+10, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_wave.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_uvAlongStroke.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_uvmap.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.cc (+26, -26) (Diff)
/source/blender/nodes/shader/nodes/node_shader_value.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_displacement.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_rotate.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vectTransform.cc (+12, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vertex_color.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_scatter.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_wavelength.cc (+10, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_wireframe.cc (+10, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_attribute.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_background.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bevel.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_blackbody.cc (+10, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_brightness.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_diffuse.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glass.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glossy.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_refraction.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_toon.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_translucent.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_transparent.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_velvet.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bump.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_camera.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_clamp.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_curves.cc (+30, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_displacement.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_emission.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_fresnel.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_gamma.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_geometry.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hair_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_holdout.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hueSatVal.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ies_light.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_invert.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_layer_weight.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_light_falloff.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_light_path.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mapping.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+10, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_math.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mixRgb.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mix_shader.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal_map.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_object_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_aov.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_light.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_linestyle.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_material.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_world.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_rgb.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_script.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombHSV.cc (+25, -15) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc (+24, -24) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc (+22, -22) (Diff)
/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_squeeze.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.cc (+12, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tangent.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_brick.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_checker.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_coord.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_gradient.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_image.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_magic.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.cc (+11, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc (+10, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_wave.cc (+8, -10) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc (+9, -11) (Diff)
/source/blender/nodes/shader/nodes/node_shader_uvAlongStroke.cc (+7, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_uvmap.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.cc (+26, -26) (Diff)
/source/blender/nodes/shader/nodes/node_shader_value.cc (+8, -6) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_displacement.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_rotate.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vectTransform.cc (+12, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vertex_color.cc (+9, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_info.cc (+8, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.cc (+10, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_volume_scatter.cc (+9, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_wavelength.cc (+10, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_wireframe.cc (+10, -2) (Diff)