Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Copying Ogre render target texture to holo lens

$
0
0

I'm doing the following :

Ogre::TexturePtr * ogreTexture = mOgreContentRenderer->getTextures();

pDeviceResources->GetD3DDeviceContext()->CopySubresourceRegion( cameraBackBuffer.Get(), LeftEye, 0, 0, 0, ((Ogre::D3D11Texture*)ogreTexture[LeftEye].get())->GetTex2D(), 0, 0 );

pDeviceResources->GetD3DDeviceContext()->CopySubresourceRegion( cameraBackBuffer.Get(), RightEye, 0, 0, 0, ((Ogre::D3D11Texture*)ogreTexture[RightEye].get())->GetTex2D(), 0, 0 );

 

But that's pretty slow, I would like to wrap the render texture from ogre and feed it to the backbuffer of HoloLens ? is there a faster way ?

 

 


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>