diff options
author | Ethan-Hall <Ethan1080> | 2022-03-23 17:53:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-03-23 22:06:12 +0300 |
commit | f5066d43ae572de929fea31cbc9e091e288b2435 (patch) | |
tree | c585a7551aae6b899064e88b570046f606a76f7a /intern/cycles/kernel/geom/primitive.h | |
parent | 4e56e738a8f35228873d6e84d9e9f8b0e7a74a59 (diff) |
Cleanup: use make_float4(f) zero_float4() to simplify code
Differential Revision: https://developer.blender.org/D14426
Diffstat (limited to 'intern/cycles/kernel/geom/primitive.h')
-rw-r--r-- | intern/cycles/kernel/geom/primitive.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/kernel/geom/primitive.h b/intern/cycles/kernel/geom/primitive.h index 63d1168364c..9b4b61fbd84 100644 --- a/intern/cycles/kernel/geom/primitive.h +++ b/intern/cycles/kernel/geom/primitive.h @@ -135,10 +135,10 @@ ccl_device_forceinline float4 primitive_surface_attribute_float4(KernelGlobals k #endif else { if (dx) - *dx = make_float4(0.0f, 0.0f, 0.0f, 0.0f); + *dx = zero_float4(); if (dy) - *dy = make_float4(0.0f, 0.0f, 0.0f, 0.0f); - return make_float4(0.0f, 0.0f, 0.0f, 0.0f); + *dy = zero_float4(); + return zero_float4(); } } @@ -187,7 +187,7 @@ ccl_device_inline float4 primitive_volume_attribute_float4(KernelGlobals kg, return volume_attribute_float4(kg, sd, desc); } else { - return make_float4(0.0f, 0.0f, 0.0f, 0.0f); + return zero_float4(); } } #endif |