KDXr::OpenXrSession
Module: OpenXR
OpenXrSession. 
#include <openxr_session.h>
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) | 
| void | 
initialize(Session * _frontendSession) | 
| std::vector< KDGpu::Format > | 
supportedSwapchainFormats() const | 
| FrameState | 
waitForFrame() | 
| BeginFrameResult | 
beginFrame() | 
| EndFrameResult | 
endFrame(const EndFrameOptions & options) | 
| LocateViewsResult | 
locateViews(const LocateViewsOptions & options, ViewConfigurationType viewConfigurationType, ViewState & viewState) | 
| void | 
setSessionState(SessionState state) | 
| AttachActionSetsResult | 
attachActionSets(const AttachActionSetsOptions & options) | 
| InteractionProfileState | 
getInteractionProfile(const GetInterationProfileOptions & options) const | 
| SyncActionsResult | 
syncActions(const SyncActionsOptions & options) | 
| GetActionStateResult | 
getBooleanState(const GetActionStateOptions & options, ActionStateBoolean & state) const | 
| GetActionStateResult | 
getFloatState(const GetActionStateOptions & options, ActionStateFloat & state) const | 
| GetActionStateResult | 
getVector2State(const GetActionStateOptions & options, ActionStateVector2 & state) const | 
| GetActionStateResult | 
getPoseState(const GetActionStateOptions & options, ActionStatePose & state) const | 
| 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
 | void initialize(
    Session * _frontendSession
)
  | 
 
 | std::vector< KDGpu::Format > supportedSwapchainFormats() const
  | 
 
function waitForFrame
 | FrameState waitForFrame()
  | 
 
function beginFrame
 | BeginFrameResult beginFrame()
  | 
 
function endFrame
 | EndFrameResult endFrame(
    const EndFrameOptions & options
)
  | 
 
function locateViews
 | LocateViewsResult locateViews(
    const LocateViewsOptions & options,
    ViewConfigurationType viewConfigurationType,
    ViewState & viewState
)
  | 
 
function setSessionState
 | void setSessionState(
    SessionState state
)
  | 
 
function attachActionSets
 | AttachActionSetsResult attachActionSets(
    const AttachActionSetsOptions & options
)
  | 
 
function getInteractionProfile
 | InteractionProfileState getInteractionProfile(
    const GetInterationProfileOptions & options
) const
  | 
 
function syncActions
 | SyncActionsResult syncActions(
    const SyncActionsOptions & options
)
  | 
 
function getBooleanState
 | GetActionStateResult getBooleanState(
    const GetActionStateOptions & options,
    ActionStateBoolean & state
) const
  | 
 
function getFloatState
 | GetActionStateResult getFloatState(
    const GetActionStateOptions & options,
    ActionStateFloat & state
) const
  | 
 
function getVector2State
 | GetActionStateResult getVector2State(
    const GetActionStateOptions & options,
    ActionStateVector2 & state
) const
  | 
 
function getPoseState
 | GetActionStateResult getPoseState(
    const GetActionStateOptions & options,
    ActionStatePose & state
) const
  | 
 
function vibrateOutput
 | VibrateOutputResult vibrateOutput(
    const VibrationOutputOptions & options
)
  | 
 
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 supportsCompositorLayerDepth
 | bool supportsCompositorLayerDepth { false };
  | 
 
variable supportsCylinderLayer
 | bool supportsCylinderLayer { false };
  | 
 
variable supportsCubeLayer
 | bool supportsCubeLayer { false };
  | 
 
variable supportsPassthroughLayer
 | bool supportsPassthroughLayer { false };
  | 
 
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 xrLayerDepthTests
 | std::vector< XrCompositionLayerDepthTestFB > xrLayerDepthTests;
  | 
 
variable xrLayerQuads
 | std::vector< XrCompositionLayerQuad > xrLayerQuads;
  | 
 
variable xrLayerCylinders
 | std::vector< XrCompositionLayerCylinderKHR > xrLayerCylinders;
  | 
 
variable xrLayerCubes
 | std::vector< XrCompositionLayerCubeKHR > xrLayerCubes;
  | 
 
variable xrLayerPassthrough
 | std::vector< XrCompositionLayerPassthroughFB > xrLayerPassthrough;
  | 
 
Updated on 2025-11-02 at 00:01:42 +0000