Add getDefaultGatherOffsets() to texture utils.
authorJarkko Pöyry <jpoyry@google.com>
Thu, 23 Apr 2015 23:02:39 +0000 (16:02 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Thu, 23 Apr 2015 23:25:24 +0000 (16:25 -0700)
Change-Id: Idffc3f4a6b03c227d16d28125a7c8551ad1ad335

framework/opengl/gluTextureUtil.cpp
framework/opengl/gluTextureUtil.hpp

index d2903d3..5b31d2f 100644 (file)
@@ -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
index ce1633a..3112347 100644 (file)
@@ -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