Skip to content

KDXr::OpenXrInstance

Module: OpenXR

OpenXrInstance.

#include <openxr_instance.h>

Inherits from KDXr::ApiInstance

Public Functions

Name
OpenXrInstance(OpenXrResourceManager * _openxrResourceManager, XrInstance _instance, std::vector< ApiLayer > & _apiLayers, std::vector< Extension > & _extensions, bool _isOwned =true)
virtual void initialize(Instance * _frontendInstance)
virtual InstanceProperties properties() const
virtual std::vector< ApiLayer > enabledApiLayers() const
virtual std::vector< Extension > enabledExtensions() const
virtual KDGpu::Handle< System_t > querySystem(const SystemOptions & options, const KDGpu::Handle< Instance_t > & instanceHandle)
virtual ProcessEventsResult processEvents()
void processSessionStateChangedEvent(const XrEventDataSessionStateChanged * eventData)
virtual SuggestActionBindingsResult suggestActionBindings(const SuggestActionBindingsOptions & options)
XrPath createXrPath(const std::string & path) const
std::string pathToString(XrPath path) const

Public Attributes

Name
OpenXrResourceManager * openxrResourceManager
XrInstance instance
XrDebugUtilsMessengerEXT debugMessenger
bool isOwned
std::vector< ApiLayer > apiLayers
std::vector< Extension > extensions
KDGpu::Handle< System_t > systemHandle
Instance * frontendInstance
std::map< XrSession, KDGpu::Handle< Session_t > > m_sessionToHandle

Public Functions Documentation

function OpenXrInstance

1
2
3
4
5
6
7
explicit OpenXrInstance(
    OpenXrResourceManager * _openxrResourceManager,
    XrInstance _instance,
    std::vector< ApiLayer > & _apiLayers,
    std::vector< Extension > & _extensions,
    bool _isOwned =true
)

function initialize

1
2
3
virtual void initialize(
    Instance * _frontendInstance
)

Reimplements: KDXr::ApiInstance::initialize

function properties

1
virtual InstanceProperties properties() const

Reimplements: KDXr::ApiInstance::properties

function enabledApiLayers

1
virtual std::vector< ApiLayer > enabledApiLayers() const

Reimplements: KDXr::ApiInstance::enabledApiLayers

function enabledExtensions

1
virtual std::vector< Extension > enabledExtensions() const

Reimplements: KDXr::ApiInstance::enabledExtensions

function querySystem

1
2
3
4
virtual KDGpu::Handle< System_t > querySystem(
    const SystemOptions & options,
    const KDGpu::Handle< Instance_t > & instanceHandle
)

Reimplements: KDXr::ApiInstance::querySystem

function processEvents

1
virtual ProcessEventsResult processEvents()

Reimplements: KDXr::ApiInstance::processEvents

function processSessionStateChangedEvent

1
2
3
void processSessionStateChangedEvent(
    const XrEventDataSessionStateChanged * eventData
)

function suggestActionBindings

1
2
3
virtual SuggestActionBindingsResult suggestActionBindings(
    const SuggestActionBindingsOptions & options
)

Reimplements: KDXr::ApiInstance::suggestActionBindings

function createXrPath

1
2
3
XrPath createXrPath(
    const std::string & path
) const

function pathToString

1
2
3
std::string pathToString(
    XrPath path
) const

Public Attributes Documentation

variable openxrResourceManager

1
OpenXrResourceManager * openxrResourceManager { nullptr };

variable instance

1
XrInstance instance { XR_NULL_HANDLE };

variable debugMessenger

1
XrDebugUtilsMessengerEXT debugMessenger { nullptr };

variable isOwned

1
bool isOwned { true };

variable apiLayers

1
std::vector< ApiLayer > apiLayers;

variable extensions

1
std::vector< Extension > extensions;

variable systemHandle

1
KDGpu::Handle< System_t > systemHandle;

variable frontendInstance

1
Instance * frontendInstance { nullptr };

variable m_sessionToHandle

1
std::map< XrSession, KDGpu::Handle< Session_t > > m_sessionToHandle;

Updated on 2024-11-22 at 00:02:01 +0000