Skip to content

HelloXrMultiview

#include <hello_xr_multiview.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

Name
std::shared_ptr< spdlog::logger > m_logger
std::unique_ptr< GraphicsApi > m_api
bool m_isInitialized
KDBindings::Property< SampleCountFlagBits > m_samples
std::vector< SampleCountFlagBits > m_supportedSampleCounts
Instance m_instance
Surface m_surface
Device m_device
Queue m_queue
std::vector< UploadStagingBuffer > m_stagingBuffers
std::unique_ptr< KDXr::XrApi > m_xrApi
KDXr::Instance m_xrInstance
KDXr::System * m_system
KDXr::Session m_session
KDXr::ReferenceSpaceOptions m_referenceSpaceOptions
KDXr::ReferenceSpace m_referenceSpace
const std::vector< KDXr::ViewConfigurationType > m_applicationViewConfigurations
KDXr::ViewConfigurationType m_selectedViewConfiguration
KDXr::EnvironmentBlendMode m_selectedEnvironmentBlendMode
std::vector< KDXr::ViewConfigurationView > m_viewConfigurationViews
Format m_colorSwapchainFormat
Format m_depthSwapchainFormat
const std::vector< Format > m_applicationColorSwapchainFormats
const std::vector< Format > m_applicationDepthSwapchainFormats
std::vector< KDXr::CompositionLayer * > m_compositorLayers
std::vector< std::unique_ptr< XrCompositorLayer > > m_compositorLayerObjects

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 2024-12-22 at 00:01:23 +0000