Sign in to follow this  
147

Creating Texture2D with OpenCL

Recommended Posts

147    197
Hello everyone, I have a further question. Is it possible to Transfer a Image to the gpu with OpenCL and use it as a Texture2D with DirectX11? And if, who can I manage this?

Share this post


Link to post
Share on other sites
unbird    8338
Nope, interop is part of the extension specs, for DX 11 look here: [url="http://www.khronos.org/registry/cl/specs/opencl-1.2-extensions.pdf"]OpenCL 1.2 Extensions[/url].

Do you have an NVidia card ? My card reports only OpenCL 1.1 but has the vendor extension [url="http://www.khronos.org/registry/cl/extensions/nv/cl_nv_d3d11_sharing.txt"]cl_nv_d3d11_sharing[/url]. The functions look quite the same.

The OpenCL Programming Guide [url="http://code.google.com/p/opencl-book-samples/"]code samples[/url] come with a DX 10 interop example (dynamically changing a vertex buffer and a Texture2D), maybe you can adapt this to DX 11.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this