GLTEXIMAGE2DMULTISAM(3G)
π NAME π
okay so bestie, welcome to GLTEXIMAGE2DMULTISAM(3G) β the manual page for glTexImage2DMultisample. This functionβs whole job is to establish the data storage, format, dimensions, and number of samples of a multisample texture's image. slay. π
β¨ C SPECIFICATION β¨
void glTexImage2DMultisample(GLenum target, GLsizei samples,
GLenum internalformat, GLsizei width,
GLsizei height,
GLboolean fixedsamplelocations);
π PARAMETERS π
targetβ specifies the target of the operation. It must beGL_TEXTURE_2D_MULTISAMPLEorGL_PROXY_TEXTURE_2D_MULTISAMPLE.samplesβ the number of samples in the multisample texture's image. πinternalformatβ the internal format to be used to store the multisample texture's image. It must specify a color-renderable, depth-renderable, or stencil-renderable format. β¨widthβ the width of the multisample texture's image, in texels.heightβ the height of the multisample texture's image, in texels.fixedsamplelocationsβ specifies whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image. π«Ά
π¦ DESCRIPTION π¦
glTexImage2DMultisample establishes the data storage, format, dimensions and number of samples of a multisample texture's image.
target must be GL_TEXTURE_2D_MULTISAMPLE or GL_PROXY_TEXTURE_2D_MULTISAMPLE. width and height are the dimensions in texels of the texture, and must be in the range zero to the value of GL_MAX_TEXTURE_SIZE minus one. samples specifies the number of samples in the image and must be in the range zero to the value of GL_MAX_SAMPLES minus one.
internalformat must be a color-renderable, depth-renderable, or stencil-renderable format.
If fixedsamplelocations is GL_TRUE, the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image.
When a multisample texture is accessed in a shader, the access takes one vector of integers describing which texel to fetch and an integer corresponding to the sample numbers describing which sample within the texel to fetch. No standard sampling instructions are allowed on the multisample texture targets. π«
πΈ NOTES πΈ
glTexImage2DMultisample is available only if the GL version is 3.2 or greater. iykyk π
π ERRORS π
GL_INVALID_OPERATIONis generated ifinternalformatis a depth- or stencil-renderable format andsamplesis greater than the value ofGL_MAX_DEPTH_TEXTURE_SAMPLES.GL_INVALID_OPERATIONis generated ifinternalformatis a color-renderable format andsamplesis greater than the value ofGL_MAX_COLOR_TEXTURE_SAMPLES.GL_INVALID_OPERATIONis generated ifinternalformatis a signed or unsigned integer format andsamplesis greater than the value ofGL_MAX_INTEGER_SAMPLES.GL_INVALID_VALUEis generated if eitherwidthorheightis negative or is greater thanGL_MAX_TEXTURE_SIZE.GL_INVALID_VALUEis generated ifsamplesis zero. π«’GL_INVALID_OPERATIONis generated ifsamplesis greater than the maximum number of samples supported for this target andinternalformat.
π₯ VERSION SUPPORT π₯
The OpenGL Version support grid for the function/feature name glTexImage2DMultisample is giving:
- Function / Feature Name:
glTexImage2DMultisample- OpenGL 2.0:
- - OpenGL 2.1:
- - OpenGL 3.0:
- - OpenGL 3.1:
- - OpenGL 3.2:
β - OpenGL 3.3:
β - OpenGL 4.0:
β - OpenGL 4.1:
β - OpenGL 4.2:
β - OpenGL 4.3:
β - OpenGL 4.4:
β - OpenGL 4.5:
β
- OpenGL 2.0:
π SEE ALSO π
glTexImage3D()glTexImage2DMultisample()β yes bestie, it references itself, iconic π«Ά
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT π (again, bestie)
Copyright Β© 2010-2014 Khronos Group
okay thatβs the whole page β signing off with source/version [FIXME: source] and date 08/09/2021, still the GLTEXIMAGE2DMULTISAM(3G) manual page. mwah πβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms