GL_EXT_copy_image

Supported Hardware

Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 3.x

Description

This extension adds the ability to do a copy of data between two images, without any need to bind or involve the rendering pipeline. Functionally this is roughly equivalent to a memcpy in C/C++.

Example

// Copy all of renderBuffer's data into the top MIP level of texture 
glCopyImageSubDataEXT(renderBuffer, GL_RENDERBUFFER, 0, 0, 0, 0, 
                      texture, GL_TEXTURE_2D, 0, 0, 0, 0, 
			 renderBufferWidth, renderBufferHeight, 1); 
// Copy data from the bottom left of texture to the top right of the same texture 
glCopyImageSubDataEXT(texture, GL_TEXTURE_2D, 0, 0, 0, 0, 
                      texture, GL_TEXTURE_2D, 0, textureWidth/2, textureHeight/2, 0, 
                      textureWidth/2, textureHeight/2, 1);