KDGpuExample::XrExampleEngineLayer
Module: KDGpuExample API
XrExampleEngineLayer provides a base for OpenXR examples.
#include <KDGpuExample/xr_example_engine_layer.h>
Inherits from KDGpuExample::EngineLayer, KDFoundation::Object
Inherited by HelloXr, HelloXrMultiview
Public Functions
Protected Functions
Protected Attributes
Friends
Additional inherited members
Public Functions inherited from KDGpuExample::EngineLayer
Friends inherited from KDGpuExample::EngineLayer
Public Functions Documentation
function XrExampleEngineLayer
function ~XrExampleEngineLayer
| ~XrExampleEngineLayer() override
|
function addCompositorLayer
| template <typename T >
inline XrCompositorLayer * addCompositorLayer(
std::unique_ptr< T > && layer
)
|
function createCompositorLayer
| template <typename T ,
typename... Ts>
inline T * createCompositorLayer(
Ts... args
)
|
function takeCompositorLayer
| template <typename T >
inline std::unique_ptr< XrCompositorLayer > takeCompositorLayer(
T * layer
)
|
function compositorLayers
| inline std::span< const std::unique_ptr< XrCompositorLayer > > compositorLayers() const
|
function clearCompositorLayers
| inline void clearCompositorLayers()
|
function viewConfigurationViews
| inline std::span< const KDXr::ViewConfigurationView > viewConfigurationViews() const
|
Protected Functions Documentation
function onSessionStateChanged
| virtual void onSessionStateChanged(
KDXr::SessionState oldState,
KDXr::SessionState newState
)
|
function onInstanceLost
| virtual void onInstanceLost()
|
function onInteractionProfileChanged
| virtual void onInteractionProfileChanged()
|
Reimplemented by: HelloXr::onInteractionProfileChanged, HelloXrMultiview::onInteractionProfileChanged
function onAttached
| virtual void onAttached() override
|
Reimplements: KDGpuExample::EngineLayer::onAttached
function onDetached
| virtual void onDetached() override
|
Reimplements: KDGpuExample::EngineLayer::onDetached
function update
| virtual void update() override
|
Reimplements: KDGpuExample::EngineLayer::update
function pollActions
| virtual void pollActions(
KDXr::Time predictedDisplayTime
)
|
Reimplemented by: HelloXr::pollActions, HelloXrMultiview::pollActions
function event
| void event(
KDFoundation::EventReceiver * target,
KDFoundation::Event * ev
) override
|
function logger
| inline std::shared_ptr< spdlog::logger > logger() const
|
function uploadBufferData
| void uploadBufferData(
const BufferUploadOptions & options
)
|
function uploadTextureData
| void uploadTextureData(
const TextureUploadOptions & options
)
|
function releaseStagingBuffers
| void releaseStagingBuffers()
|
Protected Attributes Documentation
variable m_logger
| std::shared_ptr< spdlog::logger > m_logger;
|
variable m_api
| std::unique_ptr< GraphicsApi > m_api;
|
variable m_isInitialized
| bool m_isInitialized { false };
|
variable m_samples
| KDBindings::Property< SampleCountFlagBits > m_samples { SampleCountFlagBits::Samples1Bit };
|
variable m_supportedSampleCounts
| std::vector< SampleCountFlagBits > m_supportedSampleCounts;
|
variable m_instance
variable m_surface
variable m_device
variable m_queue
variable m_stagingBuffers
| std::vector< UploadStagingBuffer > m_stagingBuffers;
|
variable m_xrApi
| std::unique_ptr< KDXr::XrApi > m_xrApi;
|
variable m_xrInstance
| KDXr::Instance m_xrInstance;
|
variable m_system
| KDXr::System * m_system { nullptr };
|
variable m_session
variable m_referenceSpaceOptions
| KDXr::ReferenceSpaceOptions m_referenceSpaceOptions = {
.type = KDXr::ReferenceSpaceType::Local
};
|
variable m_referenceSpace
| KDXr::ReferenceSpace m_referenceSpace;
|
variable m_applicationViewConfigurations
| const std::vector< KDXr::ViewConfigurationType > m_applicationViewConfigurations {
KDXr::ViewConfigurationType::PrimaryStereo,
KDXr::ViewConfigurationType::PrimaryMono
};
|
variable m_selectedViewConfiguration
| KDXr::ViewConfigurationType m_selectedViewConfiguration { KDXr::ViewConfigurationType::MaxEnum };
|
variable m_selectedEnvironmentBlendMode
| KDXr::EnvironmentBlendMode m_selectedEnvironmentBlendMode { KDXr::EnvironmentBlendMode::MaxEnum };
|
variable m_viewConfigurationViews
| std::vector< KDXr::ViewConfigurationView > m_viewConfigurationViews;
|
| Format m_colorSwapchainFormat { Format::UNDEFINED };
|
| Format m_depthSwapchainFormat { Format::UNDEFINED };
|
| const std::vector< Format > m_applicationColorSwapchainFormats {
Format::B8G8R8A8_SRGB,
Format::R8G8B8A8_SRGB,
Format::B8G8R8A8_UNORM,
Format::R8G8B8A8_UNORM
};
|
| const std::vector< Format > m_applicationDepthSwapchainFormats {
Format::D32_SFLOAT,
Format::D16_UNORM
};
|
variable m_compositorLayers
| std::vector< KDXr::CompositionLayer * > m_compositorLayers;
|
variable m_compositorLayerObjects
| std::vector< std::unique_ptr< XrCompositorLayer > > m_compositorLayerObjects;
|
Friends
friend XrCompositorLayer
| friend class XrCompositorLayer(
XrCompositorLayer
);
|
Updated on 2024-12-15 at 00:01:55 +0000