public sealed class VulkanXrImageImporterAdopts the runtime's images into the engine's Vulkan device.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Twenty lines, and the only place in this module that knows what a VkImage is for. It exists as a separate type rather than as a method on the session because the seam it implements — IXrImageImporter — is what keeps Vixen.Xr free of both Vulkan and OpenXR, and what a second backend or a test plugs into instead.
Releasing a handle does not destroy the image. The image belongs to the compositor; what the RHI holds is a table entry pointing at it, and VulkanDevice adopts it exactly as it adopts a window swapchain's images.
Methods (5)
public VulkanXrImageImporter(VulkanDevice device)Adopts the runtime's images into the engine's Vulkan device.
public TextureHandle Import(nint nativeImage, in TextureDescription description)Adopts an image.
public TextureViewHandle CreateView(TextureHandle texture)Creates a view of an adopted image.
public void Release(TextureHandle texture)Gives an adopted handle back.
public void Release(TextureViewHandle view)Destroys a view.