I am investigating about how to share the data between OpenCL & DirectX11.
Dues to I am using ID3D11Texture2D to do video streaming & applied some video effects. I use
textureDesc.Usage = D3D11_USAGE_DYNAMIC;
textureDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
textureDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
to create texture because I need update texture data by map function for every frame I received.
But for OpenCL & DirectX sharing.
I need a raw texture's buffer, I need to use OpenCL API:
to create the OpenCL buffer that will use to apply opencl video effect by our current implementation.
But this API require the input type:
So I need to find a way to convert between ID3D11Texture2D & ID3D11Buffer.
Is it possible to do this conversion?
If you have any idea, please give me some suggestions.
Any suggestion is appreciated.