Lines Matching defs:data
299 void createGradient(std::vector<GLbyte>& data);
316 bool verifyDepthStencilGradient(GLvoid* data, unsigned int texIndex, int width, int height);
317 bool verifyColorGradient(GLvoid* data, unsigned int texIndex, int function, int width, int height);
427 // Creates a gradient texture data in the given type parameter format
428 void BaseTest::createGradient(std::vector<GLbyte>& data)
434 data.resize(TEX_SIZE * TEX_SIZE * sizeof(GLuint));
435 GLuint* dataPtr = reinterpret_cast<GLuint*>(&data[0]);
450 data.resize(TEX_SIZE * TEX_SIZE * sizeof(D32F_S8));
451 D32F_S8* dataPtr = reinterpret_cast<D32F_S8*>(&data[0]);
504 std::vector<GLbyte> data;
505 createGradient(data);
507 &data[0]);
524 createGradient(data);
526 &data[0]);
850 // Verifies DepthStencil buffer data against reference values
851 bool BaseTest::verifyDepthStencilGradient(GLvoid* data, unsigned int texIndex, int width, int height)
875 GLuint v = ((GLuint*)data)[index];
882 D32F_S8 v = ((D32F_S8*)data)[index];
991 // Verifies Color buffer data against reference values
992 bool BaseTest::verifyColorGradient(GLvoid* data, unsigned int texIndex, int function, int width, int height)
1005 GLuint color = ((GLuint*)data)[index];
1008 // When data back from glReadPixels with arguments GL_RGBA + GL_UNSIGNED_BYTE,
1357 std::vector<GLfloat> data(4 * TEX_SIZE * TEX_SIZE, 0.0f);
1366 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1372 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1388 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_DEPTH_STENCIL, m_nonDepthStencilTypes[i], &data[0]);
1395 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, m_nonDepthStencilFormats[i], m_typeFormat.type, &data[0]);
1416 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1436 gl.getTexImage(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, &data[0]);
1442 gl.getTexImage(GL_TEXTURE_2D, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, &data[0]);
1595 std::vector<GLubyte> data(dataSize);
1610 data.assign(TEX_SIZE * TEX_SIZE * m_typeFormat.size, 0);
1611 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1612 result &= verifyDepthStencilGradient(&data[0], i, TEX_SIZE, TEX_SIZE);
1653 std::vector<GLubyte> data(TEX_SIZE * TEX_SIZE * m_typeFormat.size);
1661 data.assign(TEX_SIZE * TEX_SIZE * m_typeFormat.size, 0);
1663 gl.getTexImage(GL_TEXTURE_2D, 0, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1664 result &= verifyDepthStencilGradient(&data[0], i, TEX_SIZE, TEX_SIZE);
1697 // depth and stencil tests work with the copied data.
1752 std::vector<GLubyte> data(TEX_SIZE * TEX_SIZE * m_typeFormat.size, 0);
1753 gl.getTexImage(GL_TEXTURE_2D, 0, GL_DEPTH_STENCIL, m_typeFormat.type, &data[0]);
1754 result &= verifyDepthStencilGradient(&data[0], verifyCopyTexImage, TEX_SIZE, TEX_SIZE);
1913 std::vector<GLuint> data(TEX_SIZE * TEX_SIZE, 0);
1914 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
1915 result &= verifyColorGradient(&data[0], verifyPartialAttachments, COLOR_CHECK_DEFAULT, TEX_SIZE, TEX_SIZE);
2077 std::vector<GLuint> data(TEX_SIZE * TEX_SIZE, 0);
2078 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
2079 result &= verifyColorGradient(&data[0], verifyMixedAttachments, COLOR_CHECK_DEFAULT, TEX_SIZE, TEX_SIZE);
2371 std::vector<GLbyte> data;
2372 createGradient(data);
2374 &data[0]);
2485 std::vector<GLuint> data(TEX_SIZE * TEX_SIZE);
2585 gl.readPixels(0, 0, TEX_SIZE, TEX_SIZE, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
2587 result &= verifyColorGradient(&data[0], verifyBlit, COLOR_CHECK_DEFAULT, TEX_SIZE, TEX_SIZE);