Vixen
02b45cc4

IXrImageImporter

interface Core/Vixen.Xr/IXrBackend.cs:137
csharp
public interface IXrImageImporter

Turns 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)

Used by (6)

  • IXrBackendVixen.Xr
  • NullXrBackendVixen.Xr
  • OpenXrBackendVixen.Xr.OpenXR
  • OpenXrSessionVixen.Xr.OpenXR
  • OpenXrSwapchainVixen.Xr.OpenXR
  • VulkanXrImageImporterVixen.Xr.OpenXR