Lines Matching defs:width

189  * @param width      Texture width
192 void Utils::framebuffer::attachTexture(glw::GLenum attachment, glw::GLuint texture_id, glw::GLuint width,
202 gl.viewport(0 /* x */, 0 /* y */, width, height);
736 * @param width Width of texture
740 void Utils::texture::create(GLuint width, GLuint height, GLenum internal_format)
746 m_width = width;
756 gl.texStorage2D(GL_TEXTURE_2D, 1 /* levels */, internal_format, width, height);
762 * @param width Width of texture
767 void Utils::texture::create(GLuint width, GLuint height, GLuint depth, GLenum internal_format)
773 m_width = width;
783 gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1 /* levels */, internal_format, width, height, depth);
886 * @param width Width of texture
893 void Utils::texture::update(glw::GLuint width, glw::GLuint height, glw::GLuint depth, glw::GLenum format,
904 gl.texSubImage2D(GL_TEXTURE_2D, level, 0 /* x */, 0 /* y */, width, height, format, type, data);
909 gl.texSubImage3D(GL_TEXTURE_2D_ARRAY, level, 0 /* x */, 0 /* y */, 0 /* z */, width, height, depth, format,
1146 checkGLError(GL_INVALID_VALUE, "viewport, negative width", test_result);
1164 /* Set width to -1 */
1168 checkGLError(GL_INVALID_VALUE, "viewportArrayv, negative width", test_result);
1171 checkGLError(GL_INVALID_VALUE, "viewportIndexedf, negative width", test_result);
1174 checkGLError(GL_INVALID_VALUE, "viewportIndexedfv, negative width", test_result);
1176 /* Set width to 1 and height to -1*/
1259 * INVALID_VALUE when <width> or <height> values are negative;
1263 checkGLError(GL_INVALID_VALUE, "scissor, negative width", test_result);
1281 /* Set width to -1 */
1285 checkGLError(GL_INVALID_VALUE, "scissorArrayv, negative width", test_result);
1288 checkGLError(GL_INVALID_VALUE, "scissorIndexed, negative width", test_result);
1291 checkGLError(GL_INVALID_VALUE, "scissorIndexedv, negative width", test_result);
1293 /* Set width to 1 and height to -1*/
2814 static GLuint width = m_width / 4;
2817 return checkRegionR32I(x, y, width, height, expected_value, data);
2825 * @param width Width of region
2832 bool DrawTestBase::checkRegionR32I(GLuint x, GLuint y, GLuint width, GLuint height, GLint expected_value, GLint* data)
2836 const GLuint offset = (y * height * m_width) + (x * width);
2842 for (GLuint texel = 0; texel < width; ++texel)
3122 * @param set_zeros Select if width and height should be 0 or image_dim / 4
3137 GLint width = m_width / 4;
3144 data[index * 4 + 0] = x * width;
3148 data[index * 4 + 2] = width;
3202 GLfloat width = (GLfloat)(m_width / 4);
3209 data[index * 4 + 0] = (GLfloat)((GLfloat)x * width);
3211 data[index * 4 + 2] = width;
3260 GLfloat width = (GLfloat)(m_width / 2);
3267 data[index * 4 + 0] = (GLfloat)((GLfloat)x * width);
3269 data[index * 4 + 2] = width;
4032 "Test verifies that scissor test discard all fragments when width and height is set to zero")