Lines Matching defs:height
190 void scaleDimensionsToMemory(int& width, int& height, int devLayers, int sysLayers, int devBPP, int sysBPP)
205 GLsizeiptr pixelsPerLayer = width * height;
213 // Scales the width and height such that the overall texture fits into
222 int newHeight = int(height * scale);
225 << tcu::TestLog::Message << "Reducing surface dimensions to fit in memory, from " << width << "x" << height
229 height = newHeight;
5531 int height = getWindowHeight();
5532 scaleDimensionsToMemory(width, height, 1, 1, 16, 16);
5537 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_FLOAT, NULL);
5542 glViewport(0, 0, width, height);
5559 if (!ValidateReadBuffer(0, 0, width, height, vec4(0, 1, 0, 1)))
5931 int height = getWindowHeight();
5932 scaleDimensionsToMemory(width, height, 1, 2, 16, 16);
5934 std::vector<vec4> data(width * height);
5938 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_FLOAT, &data[0]);
5947 glViewport(0, 0, width, height);
5951 if (!ValidateReadBuffer(0, 0, width, height, vec4(0, 1, 0, 1)))
6024 int height = getWindowHeight();
6025 scaleDimensionsToMemory(width, height, 8, 8, 16, 16);
6029 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA32F, width, height, 8, 0, GL_RGBA, GL_FLOAT, NULL);
6042 glViewport(0, 0, width, height);
6049 std::vector<vec4> data(width * height * 8);
6054 for (int h = 0; h < height; ++h)
6058 const vec4 c = data[layer * width * height + h * width + w];
6237 int height = getWindowHeight();
6238 scaleDimensionsToMemory(width, height, 3, 3, 16, 16);
6245 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA32F, width, height, 3, 0, GL_RGBA, GL_FLOAT, NULL);
6257 glViewport(0, 0, width, height);
6261 std::vector<vec4> data(width * height * 3);
6267 for (int h = 0; h < height; ++h)
6271 const vec4 c = data[layer * width * height + h * width + w];
6305 for (int h = 0; h < height; ++h)
6309 const vec4 c = data[layer * width * height + h * width + w];
6395 int height = getWindowHeight();
6396 scaleDimensionsToMemory(width, height, 1, 1, /* bpp*samples */ 16 * 4, 16);
6399 glTexImage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, 4, GL_RGBA32F, width, height, GL_FALSE);
6408 glViewport(0, 0, width, height);
6418 if (!ValidateReadBuffer(0, 0, width, height, vec4(0, 1, 0, 1)))
6469 int height = getWindowHeight();
6470 scaleDimensionsToMemory(width, height, 2, 2, 16, 16);
6476 std::vector<vec4> data(width * height, vec4(7.0f));
6479 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_FLOAT, &data[0]);
6483 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, GL_FLOAT, NULL);
6491 glViewport(0, 0, width, height);
6495 std::vector<vec4> rdata(width * height);
6499 for (int h = 0; h < height; ++h)
6788 TextureDimensions(GLuint width, GLuint height) : m_width(width), m_height(height)
7036 * @param height Height of the textures
7040 bool Compare2DR8UITextures(GLuint left_texture_id, GLuint right_texture_id, GLuint width, GLuint height)
7043 const GLuint texture_data_size = width * height;
7129 * @param height Height of created texture
7134 GLenum Create2DR8UIDestinationTexture(GLuint width, GLuint height, GLuint& out_texture_id)
7137 const GLuint texture_size = width * height;
7150 return Create2DR8UITexture(width, height, texture_data, out_texture_id);
7156 * @param height Height of created texture
7161 GLenum Create2DR8UISourceTexture(GLuint width, GLuint height, GLuint& out_texture_id)
7164 const GLuint texture_size = width * height;
7180 return Create2DR8UITexture(width, height, texture_data, out_texture_id);
7186 * @param height Height of created texture
7192 GLenum Create2DR8UITexture(GLuint width, GLuint height, const std::vector<GLubyte>& texture_data,
7216 glTexImage2D(GL_TEXTURE_2D, 0 /* level */, GL_R8UI, width, height, 0 /* border */, GL_RED_INTEGER,
7905 * height)).
8530 * uniforms used by program object, height should be 2, fill first row with
9295 const GLsizei height = 2;
9317 texture_data.resize(width * height);
9325 glTexImage2D(GL_TEXTURE_2D, 0 /* level */, GL_R32I, width, height, 0 /*border */, GL_RED_INTEGER, GL_INT,
9558 static const GLuint height = 2;
9645 texture_data.resize(width * height);