From 3605487eafb5713b09a01a6ee8cea7ccdbfee04f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Thu, 12 Feb 2015 15:23:57 -0800 Subject: [PATCH] Add formatArray utility. Change-Id: I273a33ef277730ab34347ef1df2b730d2b96055c --- framework/common/tcuFormatUtil.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/common/tcuFormatUtil.hpp b/framework/common/tcuFormatUtil.hpp index f2971aa..77f65bd 100644 --- a/framework/common/tcuFormatUtil.hpp +++ b/framework/common/tcuFormatUtil.hpp @@ -279,6 +279,13 @@ inline Format::ArrayPointer formatArray (const T* arr, int size) return Format::ArrayPointer(arr, size); } +/** Format array contents. */ +template +inline Format::ArrayPointer formatArray (const T (&arr)[Size]) +{ + return Format::ArrayPointer(arr, Size); +} + } // tcu #endif // _TCUFORMATUTIL_HPP -- 2.7.4