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
Public Functions Documentation
function OpenXrSession
 | 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
 | virtual void initialize(
    Session * _frontendSession
)
  | 
 
Reimplements: KDXr::ApiSession::initialize
 | virtual std::vector< KDGpu::Format > supportedSwapchainFormats() const
  | 
 
Reimplements: KDXr::ApiSession::supportedSwapchainFormats
function waitForFrame
 | virtual FrameState waitForFrame()
  | 
 
Reimplements: KDXr::ApiSession::waitForFrame
function beginFrame
 | virtual BeginFrameResult beginFrame()
  | 
 
Reimplements: KDXr::ApiSession::beginFrame
function endFrame
 | virtual EndFrameResult endFrame(
    const EndFrameOptions & options
)
  | 
 
Reimplements: KDXr::ApiSession::endFrame
function locateViews
 | virtual LocateViewsResult locateViews(
    const LocateViewsOptions & options,
    ViewConfigurationType viewConfigurationType,
    ViewState & viewState
)
  | 
 
Reimplements: KDXr::ApiSession::locateViews
function setSessionState
 | void setSessionState(
    SessionState state
)
  | 
 
function attachActionSets
 | virtual AttachActionSetsResult attachActionSets(
    const AttachActionSetsOptions & options
)
  | 
 
Reimplements: KDXr::ApiSession::attachActionSets
function getInteractionProfile
 | virtual InteractionProfileState getInteractionProfile(
    const GetInterationProfileOptions & options
) const
  | 
 
Reimplements: KDXr::ApiSession::getInteractionProfile
function syncActions
 | virtual SyncActionsResult syncActions(
    const SyncActionsOptions & options
)
  | 
 
Reimplements: KDXr::ApiSession::syncActions
function getBooleanState
 | virtual GetActionStateResult getBooleanState(
    const GetActionStateOptions & options,
    ActionStateBoolean & state
) const
  | 
 
Reimplements: KDXr::ApiSession::getBooleanState
function getFloatState
 | virtual GetActionStateResult getFloatState(
    const GetActionStateOptions & options,
    ActionStateFloat & state
) const
  | 
 
Reimplements: KDXr::ApiSession::getFloatState
function getVector2State
 | virtual GetActionStateResult getVector2State(
    const GetActionStateOptions & options,
    ActionStateVector2 & state
) const
  | 
 
Reimplements: KDXr::ApiSession::getVector2State
function getPoseState
 | virtual GetActionStateResult getPoseState(
    const GetActionStateOptions & options,
    ActionStatePose & state
) const
  | 
 
Reimplements: KDXr::ApiSession::getPoseState
function vibrateOutput
 | virtual VibrateOutputResult vibrateOutput(
    const VibrationOutputOptions & options
)
  | 
 
Reimplements: KDXr::ApiSession::vibrateOutput
Public Attributes Documentation
variable openxrResourceManager
 | OpenXrResourceManager * openxrResourceManager { nullptr };
  | 
 
variable session
 | XrSession session { XR_NULL_HANDLE };
  | 
 
variable systemHandle
 | KDGpu::Handle< System_t > systemHandle;
  | 
 
variable instanceHandle
 | KDGpu::Handle< Instance_t > instanceHandle;
  | 
 
variable graphicsApi
 | KDGpu::GraphicsApi * graphicsApi { nullptr };
  | 
 
variable deviceHandle
 | KDGpu::Handle< KDGpu::Device_t > deviceHandle;
  | 
 
variable queueIndex
 | uint32_t queueIndex { 0 };
  | 
 
variable frontendSession
 | Session * frontendSession { nullptr };
  | 
 
variable xrViews
 | std::vector< XrView > xrViews { 2, { XR_TYPE_VIEW } };
  | 
 
variable xrLayers
 | std::vector< XrCompositionLayerBaseHeader * > xrLayers;
  | 
 
variable xrLayerProjections
 | std::vector< XrCompositionLayerProjection > xrLayerProjections;
  | 
 
variable xrLayerProjectionViews
 | std::vector< XrCompositionLayerProjectionView > xrLayerProjectionViews;
  | 
 
variable xrLayerDepthInfos
 | std::vector< XrCompositionLayerDepthInfoKHR > xrLayerDepthInfos;
  | 
 
variable xrLayerQuads
 | std::vector< XrCompositionLayerQuad > xrLayerQuads;
  | 
 
variable xrLayerCylinders
 | std::vector< XrCompositionLayerCylinderKHR > xrLayerCylinders;
  | 
 
variable xrLayerCubes
 | std::vector< XrCompositionLayerCubeKHR > xrLayerCubes;
  | 
 
Updated on 2025-07-08 at 12:01:11 +0000