• Advertisement
Sign in to follow this  

Creating Texture2D with OpenCL

This topic is 1886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement