Skip to content

ProjectionLayer

#include <projection_layer.h>

Inherits from KDGpuExample::XrProjectionLayer, KDGpuExample::XrProjectionLayer, KDGpuExample::XrCompositorLayer

Public Functions

Name
ProjectionLayer(const XrProjectionLayerOptions & options)
~ProjectionLayer() override
ProjectionLayer(const ProjectionLayer & ) =delete
ProjectionLayer & operator=(const ProjectionLayer & ) =delete
ProjectionLayer(ProjectionLayer && ) =default
ProjectionLayer & operator=(ProjectionLayer && ) =default
ProjectionLayer(const XrProjectionLayerOptions & options)
~ProjectionLayer() override
ProjectionLayer(const ProjectionLayer & ) =delete
ProjectionLayer & operator=(const ProjectionLayer & ) =delete
ProjectionLayer(ProjectionLayer && ) =default
ProjectionLayer & operator=(ProjectionLayer && ) =default

Protected Functions

Name
virtual void initialize() override
virtual void cleanup() override
virtual void updateScene() override
virtual void renderView() override
virtual void initialize() override
virtual void cleanup() override
virtual void updateScene() override
virtual void renderView() override

Public Attributes

Name
KDBindings::Property< bool > rotateZ
KDBindings::Property< bool > rotateY
KDBindings::Property< float > scale
KDBindings::Property< glm::vec3 > translation
KDBindings::Property< KDXr::Pose > leftPalmPose
KDBindings::Property< KDXr::Pose > rightPalmPose

Additional inherited members

Public Functions inherited from KDGpuExample::XrProjectionLayer

Name
XrProjectionLayer(const XrProjectionLayerOptions & options)
~XrProjectionLayer() override
XrProjectionLayer(const XrProjectionLayer & ) =delete
XrProjectionLayer(XrProjectionLayer && ) =default

Protected Functions inherited from KDGpuExample::XrProjectionLayer

Name
virtual bool update(const KDXr::FrameState & frameState) override
virtual KDXr::CompositionLayer * compositionLayer() override
void recreateSwapchains()
uint32_t viewCount() const

Protected Attributes inherited from KDGpuExample::XrProjectionLayer

Name
KDGpu::Device * m_device
KDGpu::Queue * m_queue
KDXr::Session * m_session
KDGpu::Format m_colorSwapchainFormat
KDGpu::Format m_depthSwapchainFormat
KDGpu::SampleCountFlagBits m_samples
bool m_enableMultiview
float m_nearPlane
float m_farPlane
std::vector< KDXr::SwapchainInfo > m_colorSwapchains
std::vector< KDXr::SwapchainInfo > m_depthSwapchains
uint32_t m_viewCount
uint32_t m_currentViewIndex
uint32_t m_currentColorImageIndex
uint32_t m_currentDepthImageIndex
KDXr::ViewState m_viewState
KDXr::ProjectionLayer m_projectionLayer
std::vector< KDXr::ProjectionLayerView > m_projectionLayerViews
std::vector< KDXr::DepthInfo > m_depthInfos

Public Functions inherited from KDGpuExample::XrProjectionLayer

Name
XrProjectionLayer(const XrProjectionLayerOptions & options)
~XrProjectionLayer() override
XrProjectionLayer(const XrProjectionLayer & ) =delete
XrProjectionLayer(XrProjectionLayer && ) =default

Protected Functions inherited from KDGpuExample::XrProjectionLayer

Name
virtual bool update(const KDXr::FrameState & frameState) override
virtual KDXr::CompositionLayer * compositionLayer() override
void recreateSwapchains()
uint32_t viewCount() const

Protected Attributes inherited from KDGpuExample::XrProjectionLayer

Name
KDGpu::Device * m_device
KDGpu::Queue * m_queue
KDXr::Session * m_session
KDGpu::Format m_colorSwapchainFormat
KDGpu::Format m_depthSwapchainFormat
KDGpu::SampleCountFlagBits m_samples
bool m_enableMultiview
float m_nearPlane
float m_farPlane
std::vector< KDXr::SwapchainInfo > m_colorSwapchains
std::vector< KDXr::SwapchainInfo > m_depthSwapchains
uint32_t m_viewCount
uint32_t m_currentViewIndex
uint32_t m_currentColorImageIndex
uint32_t m_currentDepthImageIndex
KDXr::ViewState m_viewState
KDXr::ProjectionLayer m_projectionLayer
std::vector< KDXr::ProjectionLayerView > m_projectionLayerViews
std::vector< KDXr::DepthInfo > m_depthInfos

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)
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 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 ProjectionLayer

1
2
3
explicit ProjectionLayer(
    const XrProjectionLayerOptions & options
)

function ~ProjectionLayer

1
~ProjectionLayer() override

function ProjectionLayer

1
2
3
ProjectionLayer(
    const ProjectionLayer & 
) =delete

function operator=

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

function ProjectionLayer

1
2
3
ProjectionLayer(
    ProjectionLayer && 
) =default

function operator=

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

function ProjectionLayer

1
2
3
explicit ProjectionLayer(
    const XrProjectionLayerOptions & options
)

function ~ProjectionLayer

1
~ProjectionLayer() override

function ProjectionLayer

1
2
3
ProjectionLayer(
    const ProjectionLayer & 
) =delete

function operator=

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

function ProjectionLayer

1
2
3
ProjectionLayer(
    ProjectionLayer && 
) =default

function operator=

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

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 updateScene

1
virtual void updateScene() override

Reimplements: KDGpuExample::XrProjectionLayer::updateScene

function renderView

1
virtual void renderView() override

Reimplements: KDGpuExample::XrProjectionLayer::renderView

function initialize

1
virtual void initialize() override

Reimplements: KDGpuExample::XrCompositorLayer::initialize

function cleanup

1
virtual void cleanup() override

Reimplements: KDGpuExample::XrCompositorLayer::cleanup

function updateScene

1
virtual void updateScene() override

Reimplements: KDGpuExample::XrProjectionLayer::updateScene

function renderView

1
virtual void renderView() override

Reimplements: KDGpuExample::XrProjectionLayer::renderView

Public Attributes Documentation

variable rotateZ

1
KDBindings::Property< bool > rotateZ { false };

variable rotateY

1
KDBindings::Property< bool > rotateY { false };

variable scale

1
KDBindings::Property< float > scale { 1.0f };

variable translation

1
KDBindings::Property< glm::vec3 > translation { glm::vec3(0.0f, 0.0f, -1.0f) };

variable leftPalmPose

1
KDBindings::Property< KDXr::Pose > leftPalmPose { KDXr::Pose{} };

variable rightPalmPose

1
KDBindings::Property< KDXr::Pose > rightPalmPose { KDXr::Pose{} };

Updated on 2024-12-22 at 00:08:03 +0000