Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/util/types_float4_impl.h')
-rw-r--r--intern/cycles/util/types_float4_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/types_float4_impl.h b/intern/cycles/util/types_float4_impl.h
index de2e7cb7061..aa923eb038d 100644
--- a/intern/cycles/util/types_float4_impl.h
+++ b/intern/cycles/util/types_float4_impl.h
@@ -89,6 +89,11 @@ ccl_device_inline void print_float4(const char *label, const float4 &a)
{
printf("%s: %.8f %.8f %.8f %.8f\n", label, (double)a.x, (double)a.y, (double)a.z, (double)a.w);
}
+#else
+ccl_device_inline float4 make_float4(float f)
+{
+ return make_float4(f, f, f, f);
+}
#endif /* __KERNEL_GPU__ */
CCL_NAMESPACE_END