Skip to content

KDXr::OpenXrSwapchain

Module: OpenXR

OpenXrSwapchain.

#include <openxr_swapchain.h>

Public Functions

Name
OpenXrSwapchain(OpenXrResourceManager * _openxrResourceManager, XrSwapchain _swapchain, const KDGpu::Handle< Session_t > & _sessionHandle, const SwapchainOptions & _options)
std::vector< KDGpu::Texture > getTextures()
AcquireSwapchainTextureResult getNextTextureIndex(uint32_t & textureIndex)
WaitSwapchainTextureResult waitForTexture(Duration timeout =InfiniteDuration) const
ReleaseTextureResult releaseTexture()

Public Attributes

Name
OpenXrResourceManager * openxrResourceManager
XrSwapchain swapchain
KDGpu::Handle< Session_t > sessionHandle
SwapchainOptions options

Public Functions Documentation

function OpenXrSwapchain

1
2
3
4
5
6
explicit OpenXrSwapchain(
    OpenXrResourceManager * _openxrResourceManager,
    XrSwapchain _swapchain,
    const KDGpu::Handle< Session_t > & _sessionHandle,
    const SwapchainOptions & _options
)

function getTextures

1
std::vector< KDGpu::Texture > getTextures()

function getNextTextureIndex

1
2
3
AcquireSwapchainTextureResult getNextTextureIndex(
    uint32_t & textureIndex
)

function waitForTexture

1
2
3
WaitSwapchainTextureResult waitForTexture(
    Duration timeout =InfiniteDuration
) const

function releaseTexture

1
ReleaseTextureResult releaseTexture()

Public Attributes Documentation

variable openxrResourceManager

1
OpenXrResourceManager * openxrResourceManager { nullptr };

variable swapchain

1
XrSwapchain swapchain { XR_NULL_HANDLE };

variable sessionHandle

1
KDGpu::Handle< Session_t > sessionHandle;

variable options

1
SwapchainOptions options;

Updated on 2025-07-01 at 00:02:08 +0000