Would it be a problem to use ogre3d and opencl processes in the same app?
opencl + ogre3d?
-
- OGRE Team Member
- Posts: 5476
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1358
Re: opencl + ogre3d?
We don't have integration, but if the underlying APIs allow it, it should be possible.
You can use:
Code: Select all
ID3D11Resource *res;
GLuint res;
VkImage res;
textureGpu->getCustomAttribute( TextureGpu::msFinalTextureBuffer, &res );
To obtain the native handle.
RenderSystem::getCustomAttribute
also has various entries to obtain native handles. See the underlying RenderSystem's source code to see the available options (e.g. see D3D11RenderSystem::getCustomAttribute).
And if it's not available, just post what you need, we can just add it.
Cheers.