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/util_types_int3_impl.h')
-rw-r--r--intern/cycles/util/util_types_int3_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/cycles/util/util_types_int3_impl.h b/intern/cycles/util/util_types_int3_impl.h
index 4fc9daf5fd8..ada50c4812c 100644
--- a/intern/cycles/util/util_types_int3_impl.h
+++ b/intern/cycles/util/util_types_int3_impl.h
@@ -21,6 +21,10 @@
# error "Do not include this file directly, include util_types.h instead."
#endif
+#ifndef __KERNEL_GPU__
+# include <cstdio>
+#endif
+
CCL_NAMESPACE_BEGIN
#ifndef __KERNEL_GPU__
@@ -90,6 +94,11 @@ ccl_device_inline int3 make_int3(int x, int y, int z)
return a;
}
+
+ccl_device_inline void print_int3(const char *label, const int3& a)
+{
+ printf("%s: %d %d %d\n", label, a.x, a.y, a.z);
+}
#endif /* __KERNEL_GPU__ */
CCL_NAMESPACE_END