Lines Matching refs:textureSize
263 const int textureSize = 32;
264 std::vector<tcu::Vector<deUint8, 4> > buffer(textureSize*textureSize);
266 for (int x = 0; x < textureSize; ++x)
267 for (int y = 0; y < textureSize; ++y)
271 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);
273 buffer[x * textureSize + y] = tcu::Vector<deUint8, 4>(redComponent, 255, 255, 255);
278 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr());