diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-20 15:02:11 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-03-08 08:52:41 +0300 |
commit | a87766416ff2fe1ab942b26031782c550b5bb7a1 (patch) | |
tree | 6ed4b26732516127b1c7316bb39455a5c3d82090 /intern/cycles/util | |
parent | 365a4239c5cd04201c6d37e7139f682a200771cd (diff) |
Cycles: Report device maximum allocation and detected global size
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_logging.cpp | 9 | ||||
-rw-r--r-- | intern/cycles/util/util_logging.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/intern/cycles/util/util_logging.cpp b/intern/cycles/util/util_logging.cpp index 03041723e15..6824f1ff83c 100644 --- a/intern/cycles/util/util_logging.cpp +++ b/intern/cycles/util/util_logging.cpp @@ -69,6 +69,15 @@ void util_logging_verbosity_set(int verbosity) } std::ostream& operator <<(std::ostream &os, + const int2 &value) +{ + os << "(" << value.x + << ", " << value.y + << ")"; + return os; +} + +std::ostream& operator <<(std::ostream &os, const float3 &value) { os << "(" << value.x diff --git a/intern/cycles/util/util_logging.h b/intern/cycles/util/util_logging.h index 2aa9c25b1a0..ecf9c9cfee0 100644 --- a/intern/cycles/util/util_logging.h +++ b/intern/cycles/util/util_logging.h @@ -45,6 +45,7 @@ public: #define VLOG_ONCE(level, flag) if(!flag) flag = true, VLOG(level) +struct int2; struct float3; void util_logging_init(const char *argv0); @@ -52,6 +53,8 @@ void util_logging_start(void); void util_logging_verbosity_set(int verbosity); std::ostream& operator <<(std::ostream &os, + const int2 &value); +std::ostream& operator <<(std::ostream &os, const float3 &value); CCL_NAMESPACE_END |