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?
3 replies to this topic
Sponsor:
#3 Members - Reputation: 1611
Posted 21 November 2012 - 01:43 PM
Nope, interop is part of the extension specs, for DX 11 look here: OpenCL 1.2 Extensions.
Do you have an NVidia card ? My card reports only OpenCL 1.1 but has the vendor extension cl_nv_d3d11_sharing. The functions look quite the same.
The OpenCL Programming Guide code samples come with a DX 10 interop example (dynamically changing a vertex buffer and a Texture2D), maybe you can adapt this to DX 11.
Do you have an NVidia card ? My card reports only OpenCL 1.1 but has the vendor extension cl_nv_d3d11_sharing. The functions look quite the same.
The OpenCL Programming Guide code samples come with a DX 10 interop example (dynamically changing a vertex buffer and a Texture2D), maybe you can adapt this to DX 11.






