Skyscraper 2.0
Ogre::OpenXRSwapchain Class Reference

#include <OgreOpenXRSwapchain.h>

Collaboration diagram for Ogre::OpenXRSwapchain:

Public Member Functions

 OpenXRSwapchain ()
 
void Initialize (OpenXRState *state, OpenXRViewProjection *viewProjection)
 
void AcquireImages ()
 
void ReleaseImages ()
 
bool hasImages ()
 
XrRect2Di getImageRect ()
 
ID3D11Texture2D * getSurface (size_t index) const
 
XrSwapchain getColorSwapchain ()
 
XrSwapchain getDepthSwapchain ()
 
ID3D11Texture2D * getColorTexture ()
 
ID3D11Texture2D * getDepthTexture ()
 

Public Attributes

DXGI_FORMAT ColorSwapchainPixelFormat
 
DXGI_FORMAT DepthSwapchainPixelFormat
 

Private Attributes

SwapchainD3D11 ColorSwapchain
 
SwapchainD3D11 DepthSwapchain
 
uint32_t colorSwapchainImageIndex
 
uint32_t depthSwapchainImageIndex
 
bool isAcquired
 

Detailed Description

Here is where we keep all the stuff relating to swapchain images, allocation etc.

Definition at line 42 of file OgreOpenXRSwapchain.h.

Constructor & Destructor Documentation

◆ OpenXRSwapchain()

Ogre::OpenXRSwapchain::OpenXRSwapchain ( )

Definition at line 71 of file OgreOpenXRSwapchain.cpp.

Member Function Documentation

◆ AcquireImages()

void Ogre::OpenXRSwapchain::AcquireImages ( )

Definition at line 116 of file OgreOpenXRSwapchain.cpp.

References AcquireAndWaitForSwapchainImage(), and CHECK.

Here is the call graph for this function:

◆ getColorSwapchain()

XrSwapchain Ogre::OpenXRSwapchain::getColorSwapchain ( )

Definition at line 146 of file OgreOpenXRSwapchain.cpp.

◆ getColorTexture()

ID3D11Texture2D * Ogre::OpenXRSwapchain::getColorTexture ( )

Definition at line 156 of file OgreOpenXRSwapchain.cpp.

◆ getDepthSwapchain()

XrSwapchain Ogre::OpenXRSwapchain::getDepthSwapchain ( )

Definition at line 151 of file OgreOpenXRSwapchain.cpp.

◆ getDepthTexture()

ID3D11Texture2D * Ogre::OpenXRSwapchain::getDepthTexture ( )

Definition at line 162 of file OgreOpenXRSwapchain.cpp.

◆ getImageRect()

XrRect2Di Ogre::OpenXRSwapchain::getImageRect ( )

Definition at line 136 of file OgreOpenXRSwapchain.cpp.

◆ getSurface()

ID3D11Texture2D * Ogre::OpenXRSwapchain::getSurface ( size_t index) const

Definition at line 141 of file OgreOpenXRSwapchain.cpp.

◆ hasImages()

bool Ogre::OpenXRSwapchain::hasImages ( )
inline

Definition at line 50 of file OgreOpenXRSwapchain.h.

References isAcquired.

◆ Initialize()

◆ ReleaseImages()

void Ogre::OpenXRSwapchain::ReleaseImages ( )

Definition at line 126 of file OgreOpenXRSwapchain.cpp.

References CHECK_XRCMD.

Member Data Documentation

◆ ColorSwapchain

SwapchainD3D11 Ogre::OpenXRSwapchain::ColorSwapchain
private

Definition at line 62 of file OgreOpenXRSwapchain.h.

◆ colorSwapchainImageIndex

uint32_t Ogre::OpenXRSwapchain::colorSwapchainImageIndex
private

Definition at line 64 of file OgreOpenXRSwapchain.h.

◆ ColorSwapchainPixelFormat

DXGI_FORMAT Ogre::OpenXRSwapchain::ColorSwapchainPixelFormat

Definition at line 59 of file OgreOpenXRSwapchain.h.

◆ DepthSwapchain

SwapchainD3D11 Ogre::OpenXRSwapchain::DepthSwapchain
private

Definition at line 63 of file OgreOpenXRSwapchain.h.

◆ depthSwapchainImageIndex

uint32_t Ogre::OpenXRSwapchain::depthSwapchainImageIndex
private

Definition at line 65 of file OgreOpenXRSwapchain.h.

◆ DepthSwapchainPixelFormat

DXGI_FORMAT Ogre::OpenXRSwapchain::DepthSwapchainPixelFormat

Definition at line 60 of file OgreOpenXRSwapchain.h.

◆ isAcquired

bool Ogre::OpenXRSwapchain::isAcquired
private

Definition at line 66 of file OgreOpenXRSwapchain.h.

Referenced by hasImages().


The documentation for this class was generated from the following files: