From: Jarkko Pöyry Date: Thu, 23 Apr 2015 23:02:39 +0000 (-0700) Subject: Add getDefaultGatherOffsets() to texture utils. X-Git-Tag: upstream/0.1.0~1727^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45b7dbbfe93d87336754e8c06380953ec003aeaf;p=platform%2Fupstream%2FVK-GL-CTS.git Add getDefaultGatherOffsets() to texture utils. Change-Id: Idffc3f4a6b03c227d16d28125a7c8551ad1ad335 --- diff --git a/framework/opengl/gluTextureUtil.cpp b/framework/opengl/gluTextureUtil.cpp index d2903d3..5b31d2f 100644 --- a/framework/opengl/gluTextureUtil.cpp +++ b/framework/opengl/gluTextureUtil.cpp @@ -1158,4 +1158,16 @@ bool isSizedFormatColorRenderable (const RenderContext& renderCtx, const Context return (renderable & RENDERABLE_COLOR) != 0; } +const tcu::IVec2 (&getDefaultGatherOffsets (void))[4] +{ + static const tcu::IVec2 s_defaultOffsets[4] = + { + tcu::IVec2(0, 1), + tcu::IVec2(1, 1), + tcu::IVec2(1, 0), + tcu::IVec2(0, 0), + }; + return s_defaultOffsets; +} + } // glu diff --git a/framework/opengl/gluTextureUtil.hpp b/framework/opengl/gluTextureUtil.hpp index ce1633a..3112347 100644 --- a/framework/opengl/gluTextureUtil.hpp +++ b/framework/opengl/gluTextureUtil.hpp @@ -86,6 +86,8 @@ DataType getSamplerCubeArrayType (tcu::TextureFormat format); bool isSizedFormatColorRenderable (const RenderContext& renderCtx, const ContextInfo& contextInfo, deUint32 sizedFormat); bool isCompressedFormat (deUint32 internalFormat); +const tcu::IVec2 (&getDefaultGatherOffsets (void))[4]; + } // glu #endif // _GLUTEXTUREUTIL_HPP