Lines Matching defs:width

242  * @param width      Texture width
246 glw::GLuint texture_id, glw::GLint level, glw::GLuint width, glw::GLuint height)
251 gl.viewport(0 /* x */, 0 /* y */, width, height);
637 * @param width Width of texture
644 glw::GLenum internal_format, glw::GLuint width, glw::GLuint height, glw::GLuint depth,
650 gl.compressedTexImage1D(target, level, internal_format, width, 0 /* border */, image_size, data);
656 gl.compressedTexImage2D(target, level, internal_format, width, height, 0 /* border */, image_size, data);
660 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, internal_format, width, height, 0 /* border */,
662 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, internal_format, width, height, 0 /* border */,
664 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, internal_format, width, height, 0 /* border */,
666 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, internal_format, width, height, 0 /* border */,
668 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, internal_format, width, height, 0 /* border */,
670 gl.compressedTexImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, internal_format, width, height, 0 /* border */,
676 gl.compressedTexImage3D(target, level, internal_format, width, height, depth, 0 /* border */, image_size, data);
724 * @param width Texture width
730 void Texture::GetData(const glw::Functions& gl, glw::GLuint id, glw::GLint level, glw::GLuint width, glw::GLuint height,
741 gl.readPixels(0, 0, width, height, format, type, out_data);
768 * @param width Width of texture
776 glw::GLuint width, glw::GLuint height, glw::GLuint depth, glw::GLenum format, glw::GLenum type,
782 gl.texImage1D(target, level, internal_format, width, 0 /* border */, format, type, data);
788 gl.texImage2D(target, level, internal_format, width, height, 0 /* border */, format, type, data);
792 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, internal_format, width, height, 0 /* border */, format,
794 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, internal_format, width, height, 0 /* border */, format,
796 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, internal_format, width, height, 0 /* border */, format,
798 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, internal_format, width, height, 0 /* border */, format,
800 gl.texImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, internal_format, width, height, 0 /* border */, format,
802 gl.texImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, internal_format, width, height, 0 /* border */, format,
808 gl.texImage3D(target, level, internal_format, width, height, depth, 0 /* border */, format, type, data);
822 * @param width Width of texture
827 glw::GLuint width, glw::GLuint height, glw::GLuint depth)
832 gl.texStorage1D(target, levels, internal_format, width);
839 gl.texStorage2D(target, levels, internal_format, width, height);
843 gl.texStorage2DMultisample(target, levels, internal_format, width, height, GL_FALSE);
848 gl.texStorage3D(target, levels, internal_format, width, height, depth);
864 * @param width Width of texture
872 glw::GLint z, glw::GLsizei width, glw::GLsizei height, glw::GLsizei depth, glw::GLenum format,
878 gl.texSubImage1D(target, level, x, width, format, type, pixels);
884 gl.texSubImage2D(target, level, x, y, width, height, format, type, pixels);
888 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, level, x, y, width, height, format, type, pixels);
889 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, level, x, y, width, height, format, type, pixels);
890 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, level, x, y, width, height, format, type, pixels);
891 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, level, x, y, width, height, format, type, pixels);
892 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, level, x, y, width, height, format, type, pixels);
893 gl.texSubImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, level, x, y, width, height, format, type, pixels);
898 gl.texSubImage3D(target, level, x, y, z, width, height, depth, format, type, pixels);
1094 static const GLuint width = 8;
1118 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R8UI, width, height, 0);
1124 Framebuffer::AttachTexture(gl, GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texture.m_id, 0 /* level */, width,
1234 static const GLuint width = 8;
1236 GLubyte pixels[width * height];
1237 for (GLuint i = 0; i < width * height; ++i)
1244 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height, 0 /* depth */,
1285 static const GLuint width = 8;
1289 std::vector<GLubyte> pixels(width * height * pixel_size, 0);
1291 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
1341 static const GLuint width = 16;
1434 width, height);
1689 GLuint width = image_width;
1707 width = 2 * image_width;
1720 Texture::Storage(gl, target, n_levels, internal_format, width, height, 0);
1752 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1766 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1782 Texture::SubImage(gl, GL_TEXTURE_2D, 0 /* level */, 0 /* x */, 0 /* y */, 0 /* z */, width, height,
1860 static const GLuint width = 16;
1861 static const GLuint n_pixels = height * width;
1996 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2056 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2116 static const GLuint width = 16;
2117 static const GLuint n_pixels = height * width;
2130 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]);
2161 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_BYTE, &pixels[0]);
2202 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_FLOAT, &pixels[0]);
2241 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
2302 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2330 Texture::GetData(gl, destination_texture.m_id, 0 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT,
2380 static const GLuint width = 16;
2462 gl.dispatchCompute(width, height, 1 /* depth */);
2484 gl.dispatchCompute(width, height, 1 /* depth */);
2505 gl.dispatchCompute(width, height, 1 /* depth */);
2694 static const GLuint width = 16;
2695 static const GLuint n_pixels = height * width;
2886 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);
2945 static const GLuint width = 16;
2946 static const GLuint n_pixels = height * width;
3033 Texture::GetData(gl, texture_id, 0 /* level */, width, height, GL_RGBA, GL_FLOAT, &pixels[0]);
3073 Texture::GetData(gl, texture_id, 1 /* level */, width, height, GL_RGBA_INTEGER, GL_UNSIGNED_INT, &pixels[0]);
3134 Texture::Storage(gl, GL_TEXTURE_2D, 1, GL_R32UI, width, height, 0 /* depth */);