GLFRAMEBUFFERTEXTURE - Online Linux Manual PageSection : 3G
Updated : 01/20/2022
Source : [FIXME: source]
Note : [FIXME: manual]
NAMEglFramebufferTextureLayer, glNamedFramebufferTextureLayer − attach a single layer of a texture object as a logical buffer of a framebuffer object
C SPECIFICATIONvoid glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); void glNamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
PARAMETERStarget Specifies the target to which the framebuffer is bound for glFramebufferTextureLayer. framebuffer Specifies the name of the framebuffer object for glNamedFramebufferTextureLayer. attachment Specifies the attachment point of the framebuffer. texture Specifies the name of an existing texture object to attach. level Specifies the mipmap level of the texture object to attach. layer Specifies the layer of the texture object to attach.
DESCRIPTIONglFramebufferTextureLayer and glNamedFramebufferTextureLayer attach a single layer of a three−dimensional or array texture object as one of the logical buffers of the specified framebuffer object. Textures cannot be attached to the default draw and read framebuffer, so they are not valid targets of these commands. For glFramebufferTextureLayer, the framebuffer object is that bound to target, which must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. For glNamedFramebufferTextureLayer, framebuffer is the name of the framebuffer object. attachment specifies the logical attachment of the framebuffer and must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. i in GL_COLOR_ATTACHMENTi may range from zero to the value of GL_MAX_COLOR_ATTACHMENTS minus one. Attaching a level of a texture to GL_DEPTH_STENCIL_ATTACHMENT is equivalent to attaching that level to both the GL_DEPTH_ATTACHMENT and the GL_STENCIL_ATTACHMENT attachment points simultaneously. If texture is not zero, it must be the name of a three−dimensional, two−dimensional multisample array, one− or two−dimensional array, or cube map array texture. If texture is a three−dimensional texture, then level must be greater than or equal to zero and less than or equal to $log_2$ of the value of GL_MAX_3D_TEXTURE_SIZE. If texture is a two−dimensional array texture, then level must be greater than or equal to zero and less than or equal to $log_2$ of the value of GL_MAX_TEXTURE_SIZE. For cube map textures, layer is translated into a cube map face according to $$ face = k \bmod 6. $$ For cube map array textures, layer is translated into an array layer and face according to $$ layer = \left\lfloor { layer \over 6 } \right\rfloor$$ and $$ face = k \bmod 6. $$
ERRORSGL_INVALID_ENUM is generated by glFramebufferTexture if target is not one of the accepted framebuffer targets. GL_INVALID_OPERATION is generated by glFramebufferTexture if zero is bound to target. GL_INVALID_OPERATION is generated by glNamedFramebufferTexture if framebuffer is not the name of an existing framebuffer object. GL_INVALID_ENUM is generated if attachment is not one of the accepted attachment points. GL_INVALID_OPERATION is generated if texture is not zero and is not the name of an existing three−dimensional, two−dimensional multisample array, one− or two−dimensional array, cube map, or cube map array texture. GL_INVALID_VALUE is generated if texture is not zero and level is not a supported texture level for texture, as described above. GL_INVALID_VALUE is generated if texture is not zero and layer is larger than the value of GL_MAX_3D_TEXTURE_SIZE minus one (for three−dimensional texture objects), or larger than the value of GL_MAX_ARRAY_TEXTURE_LAYERS minus one (for array texture objects). GL_INVALID_VALUE is generated if texture is not zero and layer is negative. GL_INVALID_OPERATION is generated by if texture is a buffer texture.
VERSION SUPPORT OpenGL Version Function / Feature Name 2.0 none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'> 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 glFramebufferTextureLayer − − ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ glNamedFramebufferTextureLayer − − − − − − − − − − − ✔
SEE ALSOglGenFramebuffers(), glBindFramebuffer(), glGenRenderbuffers(), glFramebufferTexture(),
COPYRIGHTCopyright © 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
Copyright © 2010-2014 Khronos Group
0
Johanes Gumabo
Data Size : 26,059 byte
man-glFramebufferTextureLayer.3GBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 200,517
Visitor ID : :
Visitor IP : 18.191.84.179 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.