Lines Matching defs:img
76 void render (const tcu::PixelBufferAccess& img, const std::string& vertexSrc, const std::string& fragmentSrc);
106 void ShaderMetamorphicVariant::render (const tcu::PixelBufferAccess& img, const std::string& vertexSrc, const std::string& fragmentSrc)
143 gl.uniform2f(uniformLoc, glw::GLfloat(img.getWidth()), glw::GLfloat(img.getHeight()));
155 glu::readPixels(m_context.getRenderContext(), 0, 0, img);
162 tcu::Surface img = tcu::Surface(refImg.getWidth(), refImg.getHeight());
164 render(img.getAccess(), vertexSrc, fragmentSrc);
165 bool same = tcu::pixelThresholdCompare(log, "Result", "Image comparison result", img, refImg, tcu::RGBA(0,0,0,0), tcu::COMPARE_LOG_RESULT);
274 static bool sanityComparePixels (const tcu::ConstPixelBufferAccess& img, std::vector<SanityPixel> sanityPixels)
282 int x = (int)((float)img.getWidth() * sanPix.m_xRelative);
283 int y = (int)((float)img.getHeight() * sanPix.m_yRelative);
284 tcu::Vec4 RGBA = img.getPixel(x, y, depth);
293 static bool sanityCheck_synthetic (const tcu::ConstPixelBufferAccess& img)
300 isOK = sanityComparePixels(img, sanityPixels);
304 static bool sanityCheck_bubblesort_flag (const tcu::ConstPixelBufferAccess& img)
314 isOK = sanityComparePixels(img, sanityPixels);