Add missing sampleCompare*() methods to tcu::Texture1D class.
authorAkos Dirner <adirner.uszeged@partner.samsung.com>
Tue, 28 Jun 2016 13:09:34 +0000 (15:09 +0200)
committerPyry Haulos <phaulos@google.com>
Fri, 5 Aug 2016 22:37:53 +0000 (15:37 -0700)
Change-Id: I11f417be9150c9e9dd869c549be7b5d3b11ea624

framework/common/tcuTexture.hpp

index f401cf6..8bdbc36 100644 (file)
@@ -646,6 +646,8 @@ public:
        // Sampling
        Vec4                                                    sample                          (const Sampler& sampler, float s, float lod) const;
        Vec4                                                    sampleOffset            (const Sampler& sampler, float s, float lod, deInt32 offset) const;
+       float                                                   sampleCompare           (const Sampler& sampler, float ref, float s, float lod) const;
+       float                                                   sampleCompareOffset     (const Sampler& sampler, float ref, float s, float lod, deInt32 offset) const;
 
        using TextureLevelPyramid::getFormat;
        using TextureLevelPyramid::getNumLevels;
@@ -672,6 +674,16 @@ inline Vec4 Texture1D::sampleOffset (const Sampler& sampler, float s, float lod,
        return m_view.sampleOffset(sampler, s, lod, offset);
 }
 
+inline float Texture1D::sampleCompare (const Sampler& sampler, float ref, float s, float lod) const
+{
+       return m_view.sampleCompare(sampler, ref, s, lod);
+}
+
+inline float Texture1D::sampleCompareOffset    (const Sampler& sampler, float ref, float s, float lod, deInt32 offset) const
+{
+       return m_view.sampleCompareOffset(sampler, ref, s, lod, offset);
+}
+
 /*--------------------------------------------------------------------*//*!
  * \brief 2D Texture reference implementation
  *//*--------------------------------------------------------------------*/