From cd7a989d6ad7df86bd4288eabbe66720625c4607 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mika=20Isoj=C3=A4rvi?= Date: Wed, 18 Feb 2015 14:34:52 -0800 Subject: [PATCH] Add unsigned int variant of tcu::clear(). Change-Id: I6db9311c349cee04bc10a600c9e25c1ea2b72d82 --- framework/common/tcuTextureUtil.cpp | 5 +++++ framework/common/tcuTextureUtil.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/framework/common/tcuTextureUtil.cpp b/framework/common/tcuTextureUtil.cpp index 6224ae7..1e10fc9 100644 --- a/framework/common/tcuTextureUtil.cpp +++ b/framework/common/tcuTextureUtil.cpp @@ -537,6 +537,11 @@ void clear (const PixelBufferAccess& access, const IVec4& color) } } +void clear (const PixelBufferAccess& access, const UVec4& color) +{ + clear(access, color.cast()); +} + void clearDepth (const PixelBufferAccess& access, float depth) { int pixelSize = access.getFormat().getPixelSize(); diff --git a/framework/common/tcuTextureUtil.hpp b/framework/common/tcuTextureUtil.hpp index a64905d..a973812 100644 --- a/framework/common/tcuTextureUtil.hpp +++ b/framework/common/tcuTextureUtil.hpp @@ -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); -- 2.7.4