Lines Matching refs:textureSize
271 const int textureSize = 32;
272 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize);
274 for (int x = 0; x < textureSize; ++x)
275 for (int y = 0; y < textureSize; ++y)
279 const deUint8 redComponent = (deUint8)de::clamp(de::abs((float)x / (float)textureSize - 0.5f) * 255.0f + de::abs((float)y / (float)textureSize - 0.5f) * 255.0f, 0.0f, 255.0f);
281 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255);
286 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr());