Skip to content

KDGpuExample::XrPassthroughLayer

#include <xr_passthrough_layer.h>

Inherits from KDGpuExample::XrCompositorLayer

Public Functions

Name
XrPassthroughLayer(const XrPassthroughLayerOptions & options)
~XrPassthroughLayer() override
XrPassthroughLayer(const XrPassthroughLayer & ) =delete
XrPassthroughLayer & operator=(const XrPassthroughLayer & ) =delete
XrPassthroughLayer(XrPassthroughLayer && ) =default
XrPassthroughLayer & operator=(XrPassthroughLayer && ) =default
void setRunning(bool running)

Protected Functions

Name
virtual void initialize() override
virtual void cleanup() override
virtual bool update(const KDXr::FrameState & frameState) override
virtual KDXr::CompositionLayer * compositionLayer() override

Protected Attributes

Name
KDGpu::Device * m_device
KDGpu::Queue * m_queue
KDXr::Session * m_session
KDXr::PassthroughLayerController m_layerController
KDXr::PassthroughCompositionLayer m_passthroughCompositionLayer

Additional inherited members

Public Types inherited from KDGpuExample::XrCompositorLayer

Name
enum class uint32_t Type { Projection, Quad, Cylinder, Cube, Equirect, PassThrough}

Public Functions inherited from KDGpuExample::XrCompositorLayer

Name
virtual ~XrCompositorLayer()
XrCompositorLayer(const XrCompositorLayer & ) =delete
XrCompositorLayer(XrCompositorLayer && ) =default
Type type() const
void setReferenceSpace(const KDGpu::Handle< KDXr::ReferenceSpace_t > & referenceSpace)
KDGpu::Handle< KDXr::ReferenceSpace_t > referenceSpace() const
const XrExampleEngineLayer * engineLayer() const
XrExampleEngineLayer * engineLayer()
const Engine * engine() const
Engine * engine()

Protected Functions inherited from KDGpuExample::XrCompositorLayer

Name
XrCompositorLayer(Type type)
std::shared_ptr< spdlog::logger > logger() const
void uploadBufferData(const KDGpu::BufferUploadOptions & options)
void uploadTextureData(const KDGpu::TextureUploadOptions & options)

Protected Attributes inherited from KDGpuExample::XrCompositorLayer

Name
Type m_type
XrExampleEngineLayer * m_engineLayer
KDGpu::Handle< KDXr::ReferenceSpace_t > m_referenceSpace

Friends inherited from KDGpuExample::XrCompositorLayer

Name
class XrExampleEngineLayer

Public Functions Documentation

function XrPassthroughLayer

1
2
3
explicit XrPassthroughLayer(
    const XrPassthroughLayerOptions & options
)

function ~XrPassthroughLayer

1
~XrPassthroughLayer() override

function XrPassthroughLayer

1
2
3
XrPassthroughLayer(
    const XrPassthroughLayer & 
) =delete

function operator=

1
2
3
XrPassthroughLayer & operator=(
    const XrPassthroughLayer & 
) =delete

function XrPassthroughLayer

1
2
3
XrPassthroughLayer(
    XrPassthroughLayer && 
) =default

function operator=

1
2
3
XrPassthroughLayer & operator=(
    XrPassthroughLayer && 
) =default

function setRunning

1
2
3
void setRunning(
    bool running
)

Protected Functions Documentation

function initialize

1
virtual void initialize() override

Reimplements: KDGpuExample::XrCompositorLayer::initialize

function cleanup

1
virtual void cleanup() override

Reimplements: KDGpuExample::XrCompositorLayer::cleanup

function update

1
2
3
virtual bool update(
    const KDXr::FrameState & frameState
) override

Reimplements: KDGpuExample::XrCompositorLayer::update

function compositionLayer

1
inline virtual KDXr::CompositionLayer * compositionLayer() override

Reimplements: KDGpuExample::XrCompositorLayer::compositionLayer

Protected Attributes Documentation

variable m_device

1
KDGpu::Device * m_device { nullptr };

variable m_queue

1
KDGpu::Queue * m_queue { nullptr };

variable m_session

1
KDXr::Session * m_session { nullptr };

variable m_layerController

1
KDXr::PassthroughLayerController m_layerController;

variable m_passthroughCompositionLayer

1
KDXr::PassthroughCompositionLayer m_passthroughCompositionLayer;

Updated on 2025-07-01 at 00:02:08 +0000