Graphics Reference
In-Depth Information
void glFramebufferTextureLayer (GLenum target ,
GLenum attachment ,
GLuint texture ,
GLint level ,
GLint layer )
target
must be set to GL_READ_FRAMEBUFFER ,
GL_DRAW_FRAMEBUFFER , or GL_FRAMEBUFFER .
attachment
must be one of the following enums:
GL_COLOR_ATTACHMENTi
GL_DEPTH_ATTACHMENT
GL_STENCIL_ATTACHMENT
GL_DEPTH_STENCIL_ATTACHMENT
texture
specifies the texture object.
level
specifies the mip level of the texture image.
layer
specifies the layer of texture image. If texture is
GL_TEXTURE_3D , then level must be greater than or equal
to zero and less than or equal to log2 of the value of
GL_MAX_3D_TEXTURE_SIZE . If texture is
GL_TEXTURE_2D_ARRAY , then level must be greater than
or equal to zero and no larger than log2 of the value
GL_MAX_TEXTURE_SIZE .
The newly attached texture object's state or contents of its image are
not modified by glFramebufferTextureLayer . Note that the texture
object's state and image can be modified after it has been attached to a
framebuffer object.
The attachment point's state will be modified to
• Object type = GL_TEXTURE
• Object name = texture
• Texture level = level
• Texture cubemap face = GL_NONE
• Texture layer = 0
If glFramebufferTextureLayer is called with texture equal to zero,
then the attachment is detached and reset to zero.
 
 
Search WWH ::




Custom Search