Lines Matching defs:image
222 //! Get a rectangle region of an image, using NDC coordinates (i.e. [-1, 1] range).
223 //! Result rect is cropped in either dimension to be inside the bounds of the image.
224 tcu::PixelBufferAccess getSubregion (tcu::PixelBufferAccess image, const float x, const float y, const float size)
226 const float w = static_cast<float>(image.getWidth());
227 const float h = static_cast<float>(image.getHeight());
237 const int ix2 = std::min(deRoundFloatToInt32(x2), image.getWidth());
239 const int iy2 = std::min(deRoundFloatToInt32(y2), image.getHeight());
241 return tcu::getSubregion(image, ix1, iy1, ix2 - ix1, iy2 - iy1);
245 void generateReferenceImage(tcu::PixelBufferAccess image, const Vec4& clearColor, const std::vector<Vec4>& perInstancePosition, const int numInvocations)
247 tcu::clear(image, clearColor);
261 tcu::PixelBufferAccess rect = getSubregion(image, x + xOffset - size, y + yOffset - size, size + size);
289 // The shader must be in sync with reference image rendering routine.
390 return tcu::TestStatus::fail("Rendered image is incorrect");