Skip to content

HelloXr

#include <hello_xr.h>

Inherits from KDGpuExample::XrExampleEngineLayer, KDGpuExample::EngineLayer, KDFoundation::Object

Protected Functions

Name
virtual void onAttached() override
virtual void onDetached() override
virtual void onInteractionProfileChanged() override
virtual void pollActions(KDXr::Time predictedDisplayTime) override

Additional inherited members

Public Functions inherited from KDGpuExample::XrExampleEngineLayer

Name
XrExampleEngineLayer()
~XrExampleEngineLayer() override
template <typename T >
XrCompositorLayer *
addCompositorLayer(std::unique_ptr< T > && layer)
template <typename T ,typename... Ts>
T *
createCompositorLayer(Ts... args)
template <typename T >
std::unique_ptr< XrCompositorLayer >
takeCompositorLayer(T * layer)
std::span< const std::unique_ptr< XrCompositorLayer > > compositorLayers() const
void clearCompositorLayers()
std::span< const KDXr::ViewConfigurationView > viewConfigurationViews() const

Protected Functions inherited from KDGpuExample::XrExampleEngineLayer

Name
virtual void onSessionStateChanged(KDXr::SessionState oldState, KDXr::SessionState newState)
virtual void onInstanceLost()
virtual void update() override
void event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override
std::shared_ptr< spdlog::logger > logger() const
void uploadBufferData(const BufferUploadOptions & options)
void uploadTextureData(const TextureUploadOptions & options)
void releaseStagingBuffers()

Protected Attributes inherited from KDGpuExample::XrExampleEngineLayer

Friends inherited from KDGpuExample::XrExampleEngineLayer

Name
class XrCompositorLayer

Public Functions inherited from KDGpuExample::EngineLayer

Name
~EngineLayer() override
const Engine * engine() const
Engine * engine()

Protected Functions inherited from KDGpuExample::EngineLayer

Name
virtual void update()

Friends inherited from KDGpuExample::EngineLayer

Name
class Engine

Protected Functions Documentation

function onAttached

1
virtual void onAttached() override

Reimplements: KDGpuExample::EngineLayer::onAttached

function onDetached

1
virtual void onDetached() override

Reimplements: KDGpuExample::EngineLayer::onDetached

function onInteractionProfileChanged

1
virtual void onInteractionProfileChanged() override

Reimplements: KDGpuExample::XrExampleEngineLayer::onInteractionProfileChanged

function pollActions

1
2
3
virtual void pollActions(
    KDXr::Time predictedDisplayTime
) override

Reimplements: KDGpuExample::XrExampleEngineLayer::pollActions


Updated on 2025-04-12 at 00:01:45 +0000