#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) |
| Constructeur.
|
|
virtual C3D_API | ~ShadowMap () noexcept=default |
| Destructeur.
|
|
C3D_API void | accept (ConfigurationVisitorBase &visitor) |
| Fonction d'acceptation de visiteur.
|
|
C3D_API void | update (CpuUpdater &updater) |
| Met à jour la passe de rendu, au niveau CPU.
|
|
C3D_API void | update (GpuUpdater &updater) |
| Met à jour la passe de rendu, au niveau GPU.
|
|
C3D_API crg::SemaphoreWaitArray | render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue, uint32_t index) |
| Dessine la texture d'ombres.
|
|
|
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 |
| L'objet propriétaire.
|
|
◆ 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 ) |
Constructeur.
- Paramètres
-
[in] | resources | Le gestionnaire de ressources du render graph. |
[in] | device | Le device GPU. |
[in] | scene | La scène. |
[in] | lightType | Le type de source lumineuse. |
[in] | createFlags | Les flags de créqation de l'image résultat. |
[in] | size | Les dimensions de l'image résultat. |
[in] | layerCount | Le nombres de layers de l'image résultat. |
[in] | count | Le nombre de passes. |
◆ ~ShadowMap()
virtual C3D_API castor3d::ShadowMap::~ShadowMap |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ accept()
Fonction d'acceptation de visiteur.
- Paramètres
-
◆ 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 ) |
Dessine la texture d'ombres.
- Paramètres
-
[in] | toWait | Les sémaphores à attendre. |
[in] | queue | The queue recevant les commandes de dessin. |
[in] | index | L'index de la layer à dessiner. |
- Renvoie
- Les sémaphores signalés par ce dessin.
◆ update() [1/2]
Met à jour la passe de rendu, au niveau CPU.
- Paramètres
-
[in,out] | updater | Les données d'update. |
◆ update() [2/2]
Met à jour la passe de rendu, au niveau GPU.
- Paramètres
-
[in,out] | updater | Les données d'update. |
◆ 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
La documentation de cette classe a été générée à partir du fichier suivant :