Skip to content

KDGpuExample::XrCompositorLayer

#include <xr_compositor_layer.h>

Inherited by KDGpuExample::XrCubeLayer, KDGpuExample::XrCylinderLayer, KDGpuExample::XrProjectionLayer, KDGpuExample::XrQuadLayer

Public Types

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

Public Functions

Name
virtual ~XrCompositorLayer()
XrCompositorLayer(const XrCompositorLayer & ) =delete
XrCompositorLayer & operator=(const XrCompositorLayer & ) =delete
XrCompositorLayer(XrCompositorLayer && ) =default
XrCompositorLayer & operator=(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

Name
XrCompositorLayer(Type type)
virtual void initialize() =0
virtual void cleanup() =0
virtual bool update(const KDXr::FrameState & frameState) =0
virtual KDXr::CompositionLayer * compositionLayer() =0
std::shared_ptr< spdlog::logger > logger() const
void uploadBufferData(const KDGpu::BufferUploadOptions & options)
void uploadTextureData(const KDGpu::TextureUploadOptions & options)

Protected Attributes

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

Friends

Name
class XrExampleEngineLayer

Public Types Documentation

enum Type

Enumerator Value Description
Projection
Quad
Cylinder
Cube
Equirect
PassThrough

Public Functions Documentation

function ~XrCompositorLayer

1
virtual ~XrCompositorLayer()

function XrCompositorLayer

1
2
3
XrCompositorLayer(
    const XrCompositorLayer & 
) =delete

function operator=

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

function XrCompositorLayer

1
2
3
XrCompositorLayer(
    XrCompositorLayer && 
) =default

function operator=

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

function type

1
inline Type type() const

function setReferenceSpace

1
2
3
inline void setReferenceSpace(
    const KDGpu::Handle< KDXr::ReferenceSpace_t > & referenceSpace
)

function referenceSpace

1
inline KDGpu::Handle< KDXr::ReferenceSpace_t > referenceSpace() const

function engineLayer

1
inline const XrExampleEngineLayer * engineLayer() const

function engineLayer

1
inline XrExampleEngineLayer * engineLayer()

function engine

1
const Engine * engine() const

function engine

1
Engine * engine()

Protected Functions Documentation

function XrCompositorLayer

1
2
3
explicit XrCompositorLayer(
    Type type
)

function initialize

1
virtual void initialize() =0

Reimplemented by: KDGpuExample::XrCubeLayer::initialize, KDGpuExample::XrCylinderImGuiLayer::initialize, KDGpuExample::XrCylinderLayer::initialize, KDGpuExample::XrProjectionLayer::initialize, KDGpuExample::XrQuadImGuiLayer::initialize, KDGpuExample::XrQuadLayer::initialize, ProjectionLayer::initialize, ProjectionLayer::initialize

function cleanup

1
virtual void cleanup() =0

Reimplemented by: KDGpuExample::XrCubeLayer::cleanup, KDGpuExample::XrCylinderImGuiLayer::cleanup, KDGpuExample::XrCylinderLayer::cleanup, KDGpuExample::XrProjectionLayer::cleanup, KDGpuExample::XrQuadImGuiLayer::cleanup, KDGpuExample::XrQuadLayer::cleanup, ProjectionLayer::cleanup, ProjectionLayer::cleanup

function update

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

Reimplemented by: KDGpuExample::XrCubeLayer::update, KDGpuExample::XrCylinderLayer::update, KDGpuExample::XrProjectionLayer::update, KDGpuExample::XrQuadLayer::update

function compositionLayer

1
virtual KDXr::CompositionLayer * compositionLayer() =0

Reimplemented by: KDGpuExample::XrCubeLayer::compositionLayer, KDGpuExample::XrCylinderLayer::compositionLayer, KDGpuExample::XrProjectionLayer::compositionLayer, KDGpuExample::XrQuadLayer::compositionLayer

function logger

1
std::shared_ptr< spdlog::logger > logger() const

function uploadBufferData

1
2
3
void uploadBufferData(
    const KDGpu::BufferUploadOptions & options
)

function uploadTextureData

1
2
3
void uploadTextureData(
    const KDGpu::TextureUploadOptions & options
)

Protected Attributes Documentation

variable m_type

1
Type m_type;

variable m_engineLayer

1
XrExampleEngineLayer * m_engineLayer { nullptr };

variable m_referenceSpace

1
KDGpu::Handle< KDXr::ReferenceSpace_t > m_referenceSpace;

Friends

friend XrExampleEngineLayer

1
2
3
friend class XrExampleEngineLayer(
    XrExampleEngineLayer 
);

Updated on 2024-12-22 at 00:01:23 +0000