Skip to content

KDXr::Swapchain

Module: Public API

Swapchain is used to initialize the XR API. More...

#include <KDXr/swapchain.h>

Public Functions

Name
Swapchain()
~Swapchain()
Swapchain(Swapchain && other)
Swapchain & operator=(Swapchain && other)
Swapchain(const Swapchain & ) =delete
Swapchain & operator=(const Swapchain & ) =delete
KDGpu::Handle< Swapchain_t > handle() const
bool isValid() const
operator KDGpu::Handle< Swapchain_t >() const
const std::vector< KDGpu::Texture > & textures() const
AcquireSwapchainTextureResult getNextTextureIndex(uint32_t & textureIndex)
WaitSwapchainTextureResult waitForTexture(Duration timeout =InfiniteDuration) const
ReleaseTextureResult releaseTexture()

Friends

Name
class Session

Detailed Description

1
class KDXr::Swapchain;

Swapchain is used to initialize the XR API.

See: SwapchainOptions

Public Functions Documentation

function Swapchain

1
Swapchain()

function ~Swapchain

1
~Swapchain()

function Swapchain

1
2
3
Swapchain(
    Swapchain && other
)

function operator=

1
2
3
Swapchain & operator=(
    Swapchain && other
)

function Swapchain

1
2
3
Swapchain(
    const Swapchain & 
) =delete

function operator=

1
2
3
Swapchain & operator=(
    const Swapchain & 
) =delete

function handle

1
inline KDGpu::Handle< Swapchain_t > handle() const

function isValid

1
inline bool isValid() const

function operator KDGpu::Handle< Swapchain_t >

1
inline operator KDGpu::Handle< Swapchain_t >() const

function textures

1
inline const std::vector< KDGpu::Texture > & textures() const

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()

Friends

friend Session

1
2
3
friend class Session(
    Session 
);

Updated on 2024-11-21 at 00:02:29 +0000