#include <ShadowMap.hpp>
|
C3D_API | ShadowMap (crg::ResourceHandler &handler, RenderDevice const &device, Scene &scene, LightType lightType, VkImageCreateFlags createFlags, castor::Size const &size, uint32_t layerCount, uint32_t count) |
| Constructor. More...
|
|
virtual C3D_API | ~ShadowMap ()=default |
| Destructor. More...
|
|
C3D_API void | accept (PipelineVisitorBase &visitor) |
| Visitor acceptance function. More...
|
|
C3D_API void | update (CpuUpdater &updater) |
| Updates the render pass, CPU wise. More...
|
|
virtual C3D_API void | update (GpuUpdater &updater)=0 |
| Updates the render pass, GPU wise. More...
|
|
C3D_API crg::SemaphoreWaitArray | render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue, uint32_t index) |
| Renders the shadow map. More...
|
|
|
C3D_API ashes::VkClearValueArray const & | getClearValues () const |
|
C3D_API ashes::Sampler const & | getSampler (SmTexture texture, uint32_t index=0u) const |
|
virtual C3D_API crg::ImageViewId | getView (SmTexture texture, uint32_t index=0u) const |
|
virtual C3D_API crg::ImageViewIdArray | getViews (SmTexture texture, uint32_t index=0u) const |
|
ShadowMapResult const & | getShadowPassResult () const |
|
ShadowMapResult & | getShadowPassResult () |
|
Scene & | getScene () const |
|
uint32_t | getCount () const |
|
◆ PassDataPtr
◆ ShadowMap()
C3D_API castor3d::ShadowMap::ShadowMap |
( |
crg::ResourceHandler & |
handler, |
|
|
RenderDevice const & |
device, |
|
|
Scene & |
scene, |
|
|
LightType |
lightType, |
|
|
VkImageCreateFlags |
createFlags, |
|
|
castor::Size const & |
size, |
|
|
uint32_t |
layerCount, |
|
|
uint32_t |
count |
|
) |
| |
Constructor.
- Parameters
-
[in] | handler | The render graph resources handler. |
[in] | device | The GPU device. |
[in] | scene | The scene. |
[in] | lightType | The light source type. |
[in] | createFlags | The result image create flags. |
[in] | size | The result image dimensions. |
[in] | layerCount | The result image layers count. |
[in] | count | The passes count. |
◆ ~ShadowMap()
virtual C3D_API castor3d::ShadowMap::~ShadowMap |
( |
| ) |
|
|
virtualdefault |
◆ accept()
Visitor acceptance function.
- Parameters
-
◆ getClearValues()
C3D_API ashes::VkClearValueArray const & castor3d::ShadowMap::getClearValues |
( |
| ) |
const |
◆ getCount()
uint32_t castor3d::ShadowMap::getCount |
( |
| ) |
const |
|
inline |
◆ getSampler()
C3D_API ashes::Sampler const & castor3d::ShadowMap::getSampler |
( |
SmTexture |
texture, |
|
|
uint32_t |
index = 0u |
|
) |
| const |
◆ getScene()
Scene & castor3d::ShadowMap::getScene |
( |
| ) |
const |
|
inline |
◆ getShadowPassResult() [1/2]
◆ getShadowPassResult() [2/2]
◆ getView()
virtual C3D_API crg::ImageViewId castor3d::ShadowMap::getView |
( |
SmTexture |
texture, |
|
|
uint32_t |
index = 0u |
|
) |
| const |
|
virtual |
◆ getViews()
virtual C3D_API crg::ImageViewIdArray castor3d::ShadowMap::getViews |
( |
SmTexture |
texture, |
|
|
uint32_t |
index = 0u |
|
) |
| const |
|
virtual |
◆ render()
C3D_API crg::SemaphoreWaitArray castor3d::ShadowMap::render |
( |
crg::SemaphoreWaitArray const & |
toWait, |
|
|
ashes::Queue const & |
queue, |
|
|
uint32_t |
index |
|
) |
| |
Renders the shadow map.
- Parameters
-
[in] | toWait | The semaphores to wait. |
[in] | queue | The queue receiving the render commands. |
[in] | index | The index of the layer to update. |
- Returns
- The semaphores signaled by this render.
◆ update() [1/2]
Updates the render pass, CPU wise.
- Parameters
-
[in,out] | updater | The update data. |
◆ update() [2/2]
◆ m_count
uint32_t castor3d::ShadowMap::m_count |
|
protected |
◆ m_device
◆ m_geometryBuffers
std::set< std::reference_wrapper< GeometryBuffers > > castor3d::ShadowMap::m_geometryBuffers |
|
protected |
◆ m_graphs
std::vector< std::unique_ptr< crg::FrameGraph > > castor3d::ShadowMap::m_graphs |
|
protected |
◆ m_handler
crg::ResourceHandler& castor3d::ShadowMap::m_handler |
|
protected |
◆ m_lightType
◆ m_name
castor::String castor3d::ShadowMap::m_name |
|
protected |
◆ m_passes
std::vector< PassDataPtr > castor3d::ShadowMap::m_passes |
|
protected |
◆ m_result
◆ m_runnables
std::vector< crg::RunnableGraphPtr > castor3d::ShadowMap::m_runnables |
|
protected |
◆ m_scene
Scene& castor3d::ShadowMap::m_scene |
|
protected |
◆ textureFlags
The documentation for this class was generated from the following file: