OpenGLES and OpenCL Together

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

OpenGLES and OpenCL Together

ソリューションへジャンプ
1,429件の閲覧回数
bcompter
Contributor II

I'm working with an imx6 chip and I have been able to compile and run both OpenGLES and OpenCL demonstration programs on my target device without difficulty.

My area of interest is in image processing for a display. I would like to be able to perform pre-processing using OpenCL and then pass that data into OpenGLES textures to be displayed on the screen.  Each works fine by itself but when I combine the applications my screen goes blank.

I initialize OpenGL first and them OpenCL.  I suspect that when I initialize OpenCL I am taking over resources from OpenGLES.  Is it possible to run these two on the same system within the same application?  It seems to me that this should be possible.

Thanks,

Brian

ラベル(1)
タグ(2)
1 解決策
810件の閲覧回数
sebastient
Contributor V

As far as I know the only option for direct CL/GL interoperability such as texture sharing is for the library/driver to support cl_khr_gl_sharing which the Vivante SDK currently does not support.  There is also no zero copy support in their OpenCL implementation so I'm afraid your best bet is probably to implement your filters in GLSL for the time being.

元の投稿で解決策を見る

0 件の賞賛
1 返信
811件の閲覧回数
sebastient
Contributor V

As far as I know the only option for direct CL/GL interoperability such as texture sharing is for the library/driver to support cl_khr_gl_sharing which the Vivante SDK currently does not support.  There is also no zero copy support in their OpenCL implementation so I'm afraid your best bet is probably to implement your filters in GLSL for the time being.

0 件の賞賛