Skip to content

KDXr::OpenXrSwapchain

Module: OpenXR

OpenXrSwapchain.

#include <openxr_swapchain.h>

Inherits from KDXr::ApiSwapchain

Public Functions

Name
OpenXrSwapchain(OpenXrResourceManager * _openxrResourceManager, XrSwapchain _swapchain, const KDGpu::Handle< Session_t > & _sessionHandle, const SwapchainOptions & _options)
virtual std::vector< KDGpu::Texture > getTextures()
virtual AcquireSwapchainTextureResult getNextTextureIndex(uint32_t & textureIndex)
virtual WaitSwapchainTextureResult waitForTexture(Duration timeout =InfiniteDuration) const
virtual 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
virtual std::vector< KDGpu::Texture > getTextures()

Reimplements: KDXr::ApiSwapchain::getTextures

function getNextTextureIndex

1
2
3
virtual AcquireSwapchainTextureResult getNextTextureIndex(
    uint32_t & textureIndex
)

Reimplements: KDXr::ApiSwapchain::getNextTextureIndex

function waitForTexture

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

Reimplements: KDXr::ApiSwapchain::waitForTexture

function releaseTexture

1
virtual ReleaseTextureResult releaseTexture()

Reimplements: KDXr::ApiSwapchain::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 2024-09-10 at 00:01:39 +0000