#include <ShadowMap.hpp>
|
C3D_API | ShadowMap (crg::ResourcesCache &resources, RenderDevice const &device, Scene &scene, LightType lightType, VkImageCreateFlags createFlags, castor::Size const &size, uint32_t layerCount, uint32_t count) |
| Constructor.
|
|
virtual C3D_API | ~ShadowMap () noexcept=default |
| Destructor.
|
|
C3D_API void | accept (ConfigurationVisitorBase &visitor) |
| Visitor acceptance function.
|
|
C3D_API void | update (CpuUpdater &updater) |
| Updates the render pass, CPU wise.
|
|
C3D_API void | update (GpuUpdater &updater) |
| Updates the render pass, GPU wise.
|
|
C3D_API crg::SemaphoreWaitArray | render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue, uint32_t index) |
| Renders the shadow map.
|
|
|
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 (bool isStatic) const noexcept |
|
ShadowMapResult & | getShadowPassResult (bool isStatic) noexcept |
|
Scene & | getScene () const noexcept |
|
uint32_t | getCount () const noexcept |
|
Engine * | getOwner () const |
|
◆ PassDataPtr
◆ ShadowMap()
C3D_API castor3d::ShadowMap::ShadowMap |
( |
crg::ResourcesCache & | resources, |
|
|
RenderDevice const & | device, |
|
|
Scene & | scene, |
|
|
LightType | lightType, |
|
|
VkImageCreateFlags | createFlags, |
|
|
castor::Size const & | size, |
|
|
uint32_t | layerCount, |
|
|
uint32_t | count ) |
Constructor.
- Parameters
-
[in] | resources | 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 |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ accept()
Visitor acceptance function.
- Parameters
-
◆ doEnableBlur()
C3D_API bool castor3d::ShadowMap::doEnableBlur |
( |
uint32_t | index | ) |
const |
|
protected |
◆ doEnableCopyStatic()
C3D_API bool castor3d::ShadowMap::doEnableCopyStatic |
( |
uint32_t | index | ) |
const |
|
protected |
◆ doRegisterGraphIO()
C3D_API void castor3d::ShadowMap::doRegisterGraphIO |
( |
crg::FramePassGroup & | graph, |
|
|
bool | vsm, |
|
|
bool | rsm, |
|
|
bool | isStatic ) const |
|
protected |
◆ getClearValues()
C3D_API ashes::VkClearValueArray const & castor3d::ShadowMap::getClearValues |
( |
| ) |
const |
◆ getCount()
uint32_t castor3d::ShadowMap::getCount |
( |
| ) |
const |
|
inlinenoexcept |
◆ getSampler()
C3D_API ashes::Sampler const & castor3d::ShadowMap::getSampler |
( |
SmTexture | texture, |
|
|
uint32_t | index = 0u ) const |
◆ getScene()
Scene & castor3d::ShadowMap::getScene |
( |
| ) |
const |
|
inlinenoexcept |
◆ getShadowPassResult() [1/2]
ShadowMapResult const & castor3d::ShadowMap::getShadowPassResult |
( |
bool | isStatic | ) |
const |
|
inlinenoexcept |
◆ getShadowPassResult() [2/2]
ShadowMapResult & castor3d::ShadowMap::getShadowPassResult |
( |
bool | isStatic | ) |
|
|
inlinenoexcept |
◆ 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]
Updates the render pass, GPU wise.
- Parameters
-
[in,out] | updater | The update data. |
◆ m_count
uint32_t castor3d::ShadowMap::m_count |
|
protected |
◆ m_device
◆ m_lightType
◆ m_name
◆ m_passes
◆ m_passesIndex
uint32_t castor3d::ShadowMap::m_passesIndex {} |
|
protected |
◆ m_resources
crg::ResourcesCache& castor3d::ShadowMap::m_resources |
|
protected |
◆ m_result
◆ m_scene
Scene& castor3d::ShadowMap::m_scene |
|
protected |
◆ m_staticsResult
The documentation for this class was generated from the following file: