Skip to content

KDXr::OpenXrSession

Module: OpenXR

OpenXrSession.

#include <openxr_session.h>

Inherits from KDXr::ApiSession

Public Functions

Name
OpenXrSession(OpenXrResourceManager * _openxrResourceManager, XrSession _session, const KDGpu::Handle< System_t > _systemHandle, const KDGpu::Handle< Instance_t > _instanceHandle, KDGpu::GraphicsApi * _graphicsApi, KDGpu::Handle< KDGpu::Device_t > _device, uint32_t queueIndex)
virtual void initialize(Session * _frontendSession)
virtual std::vector< KDGpu::Format > supportedSwapchainFormats() const
virtual FrameState waitForFrame()
virtual BeginFrameResult beginFrame()
virtual EndFrameResult endFrame(const EndFrameOptions & options)
virtual LocateViewsResult locateViews(const LocateViewsOptions & options, ViewConfigurationType viewConfigurationType, ViewState & viewState)
void setSessionState(SessionState state)
virtual AttachActionSetsResult attachActionSets(const AttachActionSetsOptions & options)
virtual InteractionProfileState getInteractionProfile(const GetInterationProfileOptions & options) const
virtual SyncActionsResult syncActions(const SyncActionsOptions & options)
virtual GetActionStateResult getBooleanState(const GetActionStateOptions & options, ActionStateBoolean & state) const
virtual GetActionStateResult getFloatState(const GetActionStateOptions & options, ActionStateFloat & state) const
virtual GetActionStateResult getVector2State(const GetActionStateOptions & options, ActionStateVector2 & state) const
virtual GetActionStateResult getPoseState(const GetActionStateOptions & options, ActionStatePose & state) const
virtual VibrateOutputResult vibrateOutput(const VibrationOutputOptions & options)

Public Attributes

Name
OpenXrResourceManager * openxrResourceManager
XrSession session
KDGpu::Handle< System_t > systemHandle
KDGpu::Handle< Instance_t > instanceHandle
KDGpu::GraphicsApi * graphicsApi
KDGpu::Handle< KDGpu::Device_t > deviceHandle
uint32_t queueIndex
Session * frontendSession
std::vector< XrView > xrViews
std::vector< XrCompositionLayerBaseHeader * > xrLayers
std::vector< XrCompositionLayerProjection > xrLayerProjections
std::vector< XrCompositionLayerProjectionView > xrLayerProjectionViews
std::vector< XrCompositionLayerDepthInfoKHR > xrLayerDepthInfos
std::vector< XrCompositionLayerQuad > xrLayerQuads
std::vector< XrCompositionLayerCylinderKHR > xrLayerCylinders
std::vector< XrCompositionLayerCubeKHR > xrLayerCubes

Public Functions Documentation

function OpenXrSession

1
2
3
4
5
6
7
8
9
explicit OpenXrSession(
    OpenXrResourceManager * _openxrResourceManager,
    XrSession _session,
    const KDGpu::Handle< System_t > _systemHandle,
    const KDGpu::Handle< Instance_t > _instanceHandle,
    KDGpu::GraphicsApi * _graphicsApi,
    KDGpu::Handle< KDGpu::Device_t > _device,
    uint32_t queueIndex
)

function initialize

1
2
3
virtual void initialize(
    Session * _frontendSession
)

Reimplements: KDXr::ApiSession::initialize

function supportedSwapchainFormats

1
virtual std::vector< KDGpu::Format > supportedSwapchainFormats() const

Reimplements: KDXr::ApiSession::supportedSwapchainFormats

function waitForFrame

1
virtual FrameState waitForFrame()

Reimplements: KDXr::ApiSession::waitForFrame

function beginFrame

1
virtual BeginFrameResult beginFrame()

Reimplements: KDXr::ApiSession::beginFrame

function endFrame

1
2
3
virtual EndFrameResult endFrame(
    const EndFrameOptions & options
)

Reimplements: KDXr::ApiSession::endFrame

function locateViews

1
2
3
4
5
virtual LocateViewsResult locateViews(
    const LocateViewsOptions & options,
    ViewConfigurationType viewConfigurationType,
    ViewState & viewState
)

Reimplements: KDXr::ApiSession::locateViews

function setSessionState

1
2
3
void setSessionState(
    SessionState state
)

function attachActionSets

1
2
3
virtual AttachActionSetsResult attachActionSets(
    const AttachActionSetsOptions & options
)

Reimplements: KDXr::ApiSession::attachActionSets

function getInteractionProfile

1
2
3
virtual InteractionProfileState getInteractionProfile(
    const GetInterationProfileOptions & options
) const

Reimplements: KDXr::ApiSession::getInteractionProfile

function syncActions

1
2
3
virtual SyncActionsResult syncActions(
    const SyncActionsOptions & options
)

Reimplements: KDXr::ApiSession::syncActions

function getBooleanState

1
2
3
4
virtual GetActionStateResult getBooleanState(
    const GetActionStateOptions & options,
    ActionStateBoolean & state
) const

Reimplements: KDXr::ApiSession::getBooleanState

function getFloatState

1
2
3
4
virtual GetActionStateResult getFloatState(
    const GetActionStateOptions & options,
    ActionStateFloat & state
) const

Reimplements: KDXr::ApiSession::getFloatState

function getVector2State

1
2
3
4
virtual GetActionStateResult getVector2State(
    const GetActionStateOptions & options,
    ActionStateVector2 & state
) const

Reimplements: KDXr::ApiSession::getVector2State

function getPoseState

1
2
3
4
virtual GetActionStateResult getPoseState(
    const GetActionStateOptions & options,
    ActionStatePose & state
) const

Reimplements: KDXr::ApiSession::getPoseState

function vibrateOutput

1
2
3
virtual VibrateOutputResult vibrateOutput(
    const VibrationOutputOptions & options
)

Reimplements: KDXr::ApiSession::vibrateOutput

Public Attributes Documentation

variable openxrResourceManager

1
OpenXrResourceManager * openxrResourceManager { nullptr };

variable session

1
XrSession session { XR_NULL_HANDLE };

variable systemHandle

1
KDGpu::Handle< System_t > systemHandle;

variable instanceHandle

1
KDGpu::Handle< Instance_t > instanceHandle;

variable graphicsApi

1
KDGpu::GraphicsApi * graphicsApi { nullptr };

variable deviceHandle

1
KDGpu::Handle< KDGpu::Device_t > deviceHandle;

variable queueIndex

1
uint32_t queueIndex { 0 };

variable frontendSession

1
Session * frontendSession { nullptr };

variable xrViews

1
std::vector< XrView > xrViews { 2, { XR_TYPE_VIEW } };

variable xrLayers

1
std::vector< XrCompositionLayerBaseHeader * > xrLayers;

variable xrLayerProjections

1
std::vector< XrCompositionLayerProjection > xrLayerProjections;

variable xrLayerProjectionViews

1
std::vector< XrCompositionLayerProjectionView > xrLayerProjectionViews;

variable xrLayerDepthInfos

1
std::vector< XrCompositionLayerDepthInfoKHR > xrLayerDepthInfos;

variable xrLayerQuads

1
std::vector< XrCompositionLayerQuad > xrLayerQuads;

variable xrLayerCylinders

1
std::vector< XrCompositionLayerCylinderKHR > xrLayerCylinders;

variable xrLayerCubes

1
std::vector< XrCompositionLayerCubeKHR > xrLayerCubes;

Updated on 2024-12-22 at 00:08:03 +0000