Lines Matching defs:width

148  * @param width   Texture output width
152 void SparseTextureUtils::getTextureLevelSize(GLint target, TextureState& state, GLint level, GLint& width,
155 width = state.width / (int)pow(2, level);
221 * @param width Width of texture
225 void Texture::Storage(const Functions& gl, GLenum target, GLsizei levels, GLenum internal_format, GLuint width,
231 gl.texStorage1D(target, levels, internal_format, width);
234 gl.texStorage2D(target, levels, internal_format, width, depth);
239 gl.texStorage2D(target, levels, internal_format, width, height);
244 gl.texStorage3D(target, levels, internal_format, width, height, depth);
247 gl.texStorage2DMultisample(target, levels /* samples */, internal_format, width, height, GL_TRUE);
250 gl.texStorage3DMultisample(target, levels /* samples */, internal_format, width, height, depth, GL_TRUE);
279 * @param width Width of texture
287 glw::GLint z, glw::GLsizei width, glw::GLsizei height, glw::GLsizei depth, glw::GLenum format,
293 gl.texSubImage1D(target, level, x, width, format, type, pixels);
296 gl.texSubImage2D(target, level, x, y, width, depth, format, type, pixels);
300 gl.texSubImage2D(target, level, x, y, width, height, format, type, pixels);
303 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, x, y, width, height, format, type, pixels);
304 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, x, y, width, height, format, type, pixels);
305 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, x, y, width, height, format, type, pixels);
306 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, x, y, width, height, format, type, pixels);
307 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, x, y, width, height, format, type, pixels);
308 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, x, y, width, height, format, type, pixels);
313 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format, type, pixels);
1173 //The <width> and <height> has to be equal for cube map textures
1396 GLint width = pageSizeX * (int)pow(2, levels - 1);
1400 // 1) wrong width
1404 GLint widthHeight = de::max(width, height);
1408 SparseTextureUtils::verifyError(mLog, "TexStorage [wrong width]", gl.getError(), GL_INVALID_OPERATION);
1412 Texture::Storage(gl, target, levels, format, width + pageSizeX, height, depth);
1414 SparseTextureUtils::verifyError(mLog, "TexStorage [wrong width]", gl.getError(), GL_INVALID_OPERATION);
1418 Texture::Storage(gl, target, levels, format, width, height + pageSizeY, depth);
1456 GLint width = pageSizeX;
1473 // 1) wrong width
1476 Texture::Storage(gl, target, 1, format, width + max3DTextureSize, height, depth);
1477 if (!SparseTextureUtils::verifyError(mLog, "TexStorage [GL_TEXTURE_3D wrong width]", gl.getError(),
1484 Texture::Storage(gl, target, 1, format, width, height + max3DTextureSize, depth);
1497 // Ensure that width and height are within the valid bounds for a
1502 if (width < maxTextureWidthHeight && height < maxTextureWidthHeight)
1508 Texture::Storage(gl, target, 1, format, width, height, depth + max3DTextureSize);
1529 // 1) wrong width
1531 Texture::Storage(gl, target, 1, format, width + maxTextureSize, height, depth);
1532 if (!SparseTextureUtils::verifyError(mLog, "TexStorage [!GL_TEXTURE_3D wrong width]", gl.getError(),
1541 Texture::Storage(gl, target, 1, format, width, height + maxTextureSize, depth);
1562 Texture::Storage(gl, target, 1, format, width, height, depth + maxArrayTextureLayers);
1577 if (!SparseTextureUtils::verifyError(mLog, "TexStorage [wrong width]", gl.getError(), GL_INVALID_VALUE))
1586 Texture::Storage(gl, target, 1, format, width, pageSizeY + 1, depth);
1596 Texture::Storage(gl, target, 1, format, width, height, pageSizeZ + 1);
1766 * @param width Texture commitment width
1773 GLint zOffset, GLint width, GLint height, GLint depth,
1779 gl.texPageCommitmentARB(target, level, xOffset, yOffset, zOffset, width, height, depth, commit);
1813 //The <width> and <height> has to be equal for cube map textures
1822 mState.width = 2 * mState.pageSizeX;
1854 Texture::Storage(gl, target, mState.levels, format, mState.width, mState.height, mState.depth);
1883 Texture::Storage(gl, target, mState.levels, format, mState.width, mState.height, mState.depth);
1911 GLint width;
1914 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1916 if (width > 0 && height > 0 && depth >= mState.minDepth)
1918 GLint texSize = width * height * depth * mState.format.getPixelSize();
1926 Texture::SubImage(gl, target, level, 0, 0, 0, width, height, depth, transferFormat.format,
1957 GLint width;
1960 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1962 //Committed region is limited to 1/2 of width
1963 GLint widthCommitted = width / 2;
1972 GLint texSize = width * height * depth * mState.format.getPixelSize();
1993 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
1994 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
2010 GLint texSize = width * height * mState.format.getPixelSize();
2039 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
2040 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
2078 GLint width;
2081 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2086 GLint widthCommitted = width / 2;
2104 GLint width;
2107 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2112 GLint widthCommitted = width / 2;
2131 GLint width;
2134 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2139 GLint widthCommitted = width / 2;
2203 texPageCommitment(gl, target, format, texture, 0, 0, 0, 0, mState.width + mState.pageSizeX, mState.height,
2205 result = SparseTextureUtils::verifyError(mLog, "texPageCommitment [commitment width greater than expected]",
2210 texPageCommitment(gl, target, format, texture, 0, 0, 0, 0, mState.width, mState.height + mState.pageSizeY,
2219 texPageCommitment(gl, target, format, texture, 0, 0, 0, 0, mState.width, mState.height,
2232 SparseTextureUtils::verifyError(mLog, "texPageCommitment [commitment width not multiple of page sizes X]",
2417 * @param width Texture commitment width
2424 GLint xOffset, GLint yOffset, GLint zOffset, GLint width,
2429 gl.texturePageCommitmentEXT(texture, level, xOffset, yOffset, zOffset, width, height, depth, commit);