D.1.2 OpenCL inter-operation with OpenGL ES

You can share OpenCL images or buffers with OpenGL ES using the extension cl_khr_gl_sharing.

If you are mapping an OpenCL image or buffer that has been created from an OpenGL ES texture or buffer with cl_khr_gl_sharing, the acquire command for this memory object must be enqueued before the mapping command. However, you are not required to issue the acquire command to its command queue, when the mapping command is enqueued.
An OpenCL flush or finish command is not required between the enqueue of the acquire and the enqueue of the mapping, but the ordering of the enqueued commands is important because both the acquire and the mapping commands must have been completed before you can use the pointer returned by clEnqueueMapBuffer() or clEnqueueMapImage().
Non-ConfidentialPDF file icon PDF versionARM 100614_0300_00_en
Copyright © 2012, 2013, 2015, 2016 ARM. All rights reserved.