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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-02-10 22:11:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-02-10 22:11:04 +0300
commit5646a9f759f306d7c98bb240b24e88afa9e187d9 (patch)
tree6e695804f28aaea2b342bed5a619129e598490dd /intern/cycles/util/util_ssef.h
parent4e37b296317eb00774973e1ce60ea7dd3004dccc (diff)
Cycles: Add utility functions to print ssef, ssei and sseb
Nothing special, just really handy for debugging.
Diffstat (limited to 'intern/cycles/util/util_ssef.h')
-rw-r--r--intern/cycles/util/util_ssef.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/cycles/util/util_ssef.h b/intern/cycles/util/util_ssef.h
index 073f2c69dbf..dfbc8416b96 100644
--- a/intern/cycles/util/util_ssef.h
+++ b/intern/cycles/util/util_ssef.h
@@ -582,6 +582,16 @@ ccl_device_inline const ssef set_sign_bit(const ssef &a)
#endif
+ccl_device_inline void print_ssef(const char *label, const ssef &a)
+{
+ printf("%s: %.8f %.8f %.8f %.8f\n",
+ label,
+ (double)a[0],
+ (double)a[1],
+ (double)a[2],
+ (double)a[3]);
+}
+
CCL_NAMESPACE_END
#endif