11 #ifndef vtkOpenXRManagerD3DGraphics_h
12 #define vtkOpenXRManagerD3DGraphics_h
15 #include "vtkRenderingOpenXRRemotingModule.h"
22 struct XrGraphicsBindingD3D11KHR;
23 struct XrSwapchainImageD3D11KHR;
25 VTK_ABI_NAMESPACE_BEGIN
94 std::vector<XrSwapchainImageD3D11KHR>
Images;
100 void EnumerateSwapchainImages(XrSwapchain swapchain,
SwapchainImagesD3D& swapchainImages);
112 VTK_ABI_NAMESPACE_END
virtual void GetColorSwapchainImage(uint32_t eyeIndex, uint32_t imgIndex, void *texture)=0
Fill texture with the swapchain image for the specified eye.
OpenXR manager D3D graphics implementation.
D3D structure to store swapchain images.
std::vector< XrSwapchainImageD3D11KHR > Images
virtual void GetDepthSwapchainImage(uint32_t eyeIndex, uint32_t imgIndex, void *texture)=0
Fill texture with the swapchain image for the specified eye.
virtual void EnumerateDepthSwapchainImages(XrSwapchain swapchain, uint32_t eyeIndex)=0
Acquire swapchain images using xrEnumerateSwapchainImages and store them at the specified eye index...
std::shared_ptr< XrGraphicsBindingD3D11KHR > GraphicsBinding
virtual const std::vector< int64_t > & GetSupportedDepthFormats()=0
Return the list of pixel formats supported by VTK.
virtual const char * GetBackendExtensionName()=0
Return the extension name to enable a specific rendering backend.
OpenXR manager graphics implementation.
virtual const std::vector< int64_t > & GetSupportedColorFormats()=0
Return the list of pixel formats supported by VTK.
virtual bool CheckGraphicsRequirements(XrInstance instance, XrSystemId id)=0
OpenXR requires checking graphics requirements before creating a session.
virtual void SetNumberOfSwapchains(uint32_t viewCount)=0
Resize the internal vectors storing the color and depth swapchains.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
const void * GetGraphicsBinding() override
Return pointer to the XrGraphicsBindingD3D11 structure required to create the OpenXR session...
virtual bool CreateGraphicsBinding(vtkOpenGLRenderWindow *helperWindow)=0
Create the graphics binding and store it in GraphicsBindings ptr.
Defines the OpenXR types and extensions common to all platforms.
virtual void EnumerateColorSwapchainImages(XrSwapchain swapchain, uint32_t eyeIndex)=0
Acquire swapchain images using xrEnumerateSwapchainImages and store them at the specified eye index...