GLBuffer, GLRenderBuffer, ImageFormat, get_supported_image_formats, ImageDescriptor, Image, Sampler, GLTexture, DeviceTopologyAmd, add_get_info_attrs as _add_get_info_attrs, ) if _cl.have_gl(): try: from pyopencl.cffi_cl import get_apple_cgl_share_group # noqa except ImportError: pass try: from pyopencl.cffi_cl import ( # noqa enqueue_acquire_gl_objects, enqueue_release_gl_objects, ) except ImportError: pass # {{{ find pyopencl shipped source code