Are there any chances to render to the OpenXR created swapchain textures?
I mean the workflow of the OpenXR is that the swapchain images
are created by the OpenXR run-time and have to render to that textures.
So for example in the case of DX11:
Is there any chance to use the OpenXR created ID3D11Texture2D* as a Ogre::RenderTexture*?
In that threadviewtopic.php?f=5&t=95781
I was able to use the Ogre created textures as OpenXR swapchain textures but I had to use CopyResources
Code: Select all
Microsoft::WRL::ComPtr<ID3D11Device> dev11;
Microsoft::WRL::ComPtr<ID3D11DeviceContext> devcon11;
mOpenXRSwapchainTextures[textureID].texture->GetDevice(&dev11);
dev11->GetImmediateContext(&devcon11);
devcon11->CopyResource(mOpenXRSwapchainTextures[textureID].texture, (ID3D11Texture2D*)manualTextureRightEye->getGraphicsApiID());
Thank you,
Peter