Add unsigned int variant of tcu::clear().
authorMika Isojärvi <misojarvi@google.com>
Wed, 18 Feb 2015 22:34:52 +0000 (14:34 -0800)
committerMika Isojärvi <misojarvi@google.com>
Wed, 18 Feb 2015 22:34:52 +0000 (14:34 -0800)
Change-Id: I6db9311c349cee04bc10a600c9e25c1ea2b72d82

framework/common/tcuTextureUtil.cpp
framework/common/tcuTextureUtil.hpp

index 6224ae7..1e10fc9 100644 (file)
@@ -537,6 +537,11 @@ void clear (const PixelBufferAccess& access, const IVec4& color)
        }
 }
 
+void clear (const PixelBufferAccess& access, const UVec4& color)
+{
+       clear(access, color.cast<deInt32>());
+}
+
 void clearDepth (const PixelBufferAccess& access, float depth)
 {
        int pixelSize = access.getFormat().getPixelSize();
index a64905d..a973812 100644 (file)
@@ -85,6 +85,7 @@ IVec4                         getTextureFormatMantissaBitDepth        (const TextureFormat& format);
 // Texture fill.
 void   clear                                                   (const PixelBufferAccess& access, const Vec4& color);
 void   clear                                                   (const PixelBufferAccess& access, const IVec4& color);
+void   clear                                                   (const PixelBufferAccess& access, const UVec4& color);
 void   clearDepth                                              (const PixelBufferAccess& access, float depth);
 void   clearStencil                                    (const PixelBufferAccess& access, int stencil);
 void   fillWithComponentGradients              (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal);