opencl + ogre3d?

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
Nickak2003
Goblin
Posts: 272
Joined: Thu Jun 10, 2004 4:19 am
x 26

opencl + ogre3d?

Post by Nickak2003 »

Would it be a problem to use ogre3d and opencl processes in the same app?

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1280
Contact:

Re: opencl + ogre3d?

Post by dark_sylinc »

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.

Post Reply