Lines Matching refs:reference
72 void render (tcu::Texture2D& reference);
89 void clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, int pixelSize);
108 void ReadPixelsTest::render (tcu::Texture2D& reference)
125 if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32)
127 else if (reference.getFormat().type == tcu::TextureFormat::UNSIGNED_INT32)
136 if (reference.getFormat().type == tcu::TextureFormat::UNSIGNED_INT32)
138 else if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32)
177 // Render reference
179 const int coordX1 = (int)((-0.5f * (float)reference.getWidth() / 2.0f) + (float)reference.getWidth() / 2.0f);
180 const int coordY1 = (int)((-0.5f * (float)reference.getHeight() / 2.0f) + (float)reference.getHeight() / 2.0f);
181 const int coordX2 = (int)(( 0.5f * (float)reference.getWidth() / 2.0f) + (float)reference.getWidth() / 2.0f);
182 const int coordY2 = (int)(( 0.5f * (float)reference.getHeight() / 2.0f) + (float)reference.getHeight() / 2.0f);
184 for (int x = 0; x < reference.getWidth(); x++)
189 for (int y = 0; y < reference.getHeight(); y++)
193 if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32)
194 reference.getLevel(0).setPixel(tcu::IVec4(0, 0, 0, 1000), x, y);
195 else if (reference.getFormat().type == tcu::TextureFormat::UNSIGNED_INT32)
196 reference.getLevel(0).setPixel(tcu::UVec4(0, 0, 0, 1000), x, y);
198 reference.getLevel(0).setPixel(tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f), x, y);
221 void ReadPixelsTest::clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, int pixelSize)
256 GLU_CHECK_CALL(glViewport(0, 0, reference.getWidth(), reference.getHeight()));
273 tcu::clear(reference.getLevel(0), tcu::Vec4(red, green, blue, alpha));
289 tcu::clear(reference.getLevel(0), tcu::IVec4(red, green, blue, alpha));
303 tcu::clear(reference.getLevel(0), tcu::UVec4(red, green, blue, alpha));
311 render(reference);
335 tcu::Texture2D reference(format, m_width, m_height);
336 reference.allocLevel(0);
353 clearColor(reference, pixelData, pixelSize);
375 tcu::copy(referenceRGBA8.getLevel(0), reference.getLevel(0));
392 if (tcu::floatThresholdCompare(m_testCtx.getLog(), "Result", "Result", reference.getLevel(0), resultAccess, tcu::Vec4(redThreshold, greenThreshold, blueThreshold, alphaThreshold), tcu::COMPARE_LOG_RESULT))