public interface IXrImageImporterTurns an image somebody else allocated into a texture the RHI can use.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The one thing an XR swapchain needs that the RHI cannot do. A window's swapchain images are created by the graphics backend; a headset's are created by the compositor, handed over as native handles, and have to be adopted rather than allocated. There is no portable way to express that in IGraphicsDevice — the handle is a VkImage and means nothing to any other backend — so it is an interface the graphics backend that does understand it implements.
It sits here rather than in the OpenXR module so that Vixen.Xr's swapchain seam is complete on its own, and so that a second XR backend — or a test — plugs into the same place.
Methods (4)
TextureHandle Import(nint nativeImage, in TextureDescription description)Adopts an image.
void Release(TextureHandle texture)Gives an adopted handle back.
TextureViewHandle CreateView(TextureHandle texture)Creates a view of an adopted image.
void Release(TextureViewHandle view)Destroys a view.
Used by (6)
- IXrBackendVixen.Xr
- NullXrBackendVixen.Xr
- OpenXrBackendVixen.Xr.OpenXR
- OpenXrSessionVixen.Xr.OpenXR
- OpenXrSwapchainVixen.Xr.OpenXR
- VulkanXrImageImporterVixen.Xr.OpenXR