![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <RenderTechnique.hpp>


Public Types | |
| using | ShadowMapArray = std::vector< ShadowMapUPtr > |
Public Member Functions | |
| C3D_API | RenderTechnique (castor::String const &name, RenderTarget &renderTarget, RenderDevice const &device, QueueData const &queueData, Parameters const ¶meters, SsaoConfig const &ssaoConfig, ProgressBar *progress) |
| Constructor. More... | |
| C3D_API | ~RenderTechnique () |
| Destructor. More... | |
| C3D_API void | listIntermediates (std::vector< IntermediateView > &intermediates) |
| Lists the intermediate view used by the whole technique. More... | |
| C3D_API void | update (CpuUpdater &updater) |
| Updates the render pass, CPU wise. More... | |
| C3D_API void | update (GpuUpdater &updater) |
| Updates the render pass, GPU wise. More... | |
| C3D_API crg::SemaphoreWaitArray | preRender (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue) |
| Renders maps needed for the actual rendering. More... | |
| C3D_API bool | writeInto (castor::TextFile &file) |
| Writes the technique into a text file. More... | |
| C3D_API void | accept (RenderTechniqueVisitor &visitor) |
| Visitor acceptance function. More... | |
| C3D_API crg::FramePass const & | getLastPass () const |
| C3D_API SsaoConfig const & | getSsaoConfig () const |
| C3D_API SsaoConfig & | getSsaoConfig () |
| C3D_API Texture const & | getSsaoResult () const |
| C3D_API Texture const & | getFirstVctBounce () const |
| C3D_API Texture const & | getSecondaryVctBounce () const |
| C3D_API crg::ImageViewId const & | getLightDepthImgView () const |
| C3D_API TechniquePassVector | getCustomRenderPasses () const |
| C3D_API Texture const & | getDiffuseLightingResult () const |
| C3D_API Texture const & | getBaseColourResult () const |
| castor::Size const & | getSize () const |
| TextureLayout const & | getResult () const |
| Texture const & | getResultTexture () const |
| crg::ImageId const & | getResultImg () const |
| crg::ImageViewId const & | getResultImgView () const |
| crg::ImageViewId const & | getResultTargetView () const |
| Texture const & | getNormalTexture () const |
| crg::ImageViewId const & | getNormalImgView () const |
| Texture const & | getDepthTexture () const |
| crg::ImageId const & | getDepthImg () const |
| crg::ImageViewId const & | getDepthWholeView () const |
| crg::ImageViewId const & | getDepthSampledView () const |
| crg::ImageViewId const & | getDepthTargetView () const |
| crg::ImageViewId const & | getDepthObjImgView () const |
| TextureLayout const & | getDepth () const |
| TextureLayoutSPtr | getDepthPtr () const |
| ashes::Buffer< int32_t > const & | getDepthRange () const |
| bool | needsDepthRange () const |
| void | setNeedsDepthRange (bool value) |
| LightVolumePassResult const & | getLpvResult () const |
| LightVolumePassResultArray const & | getLlpvResult () const |
| MatrixUbo const & | getMatrixUbo () const |
| MatrixUbo & | getMatrixUbo () |
| SceneUbo const & | getSceneUbo () const |
| SceneUbo & | getSceneUbo () |
| LpvGridConfigUbo const & | getLpvConfigUbo () const |
| LayeredLpvGridConfigUbo const & | getLlpvConfigUbo () const |
| VoxelizerUbo const & | getVctConfigUbo () const |
| ShadowMapLightTypeArray const & | getShadowMaps () const |
| ashes::Semaphore const & | getSemaphore () const |
| RenderTarget const & | getRenderTarget () const |
| RenderTarget & | getRenderTarget () |
| bool | isMultisampling () const |
Static Public Member Functions | |
| static C3D_API uint32_t | countInitialisationSteps () |
Friends | |
| class | RenderTechniquePass |
| using castor3d::RenderTechnique::ShadowMapArray = std::vector< ShadowMapUPtr > |
| C3D_API castor3d::RenderTechnique::RenderTechnique | ( | castor::String const & | name, |
| RenderTarget & | renderTarget, | ||
| RenderDevice const & | device, | ||
| QueueData const & | queueData, | ||
| Parameters const & | parameters, | ||
| SsaoConfig const & | ssaoConfig, | ||
| ProgressBar * | progress | ||
| ) |
Constructor.
| [in] | name | The technique name. |
| [in] | renderTarget | The render target for this technique. |
| [in] | device | The GPU device. |
| [in] | queueData | The queue receiving the GPU commands. |
| [in] | parameters | The technique parameters. |
| [in] | ssaoConfig | The SSAO configuration. |
| [in] | progress | The optional progress bar. |
| C3D_API castor3d::RenderTechnique::~RenderTechnique | ( | ) |
Destructor.
| C3D_API void castor3d::RenderTechnique::accept | ( | RenderTechniqueVisitor & | visitor | ) |
Visitor acceptance function.
| visitor | The ... visitor. |
|
static |
| C3D_API TechniquePassVector castor3d::RenderTechnique::getCustomRenderPasses | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| C3D_API crg::FramePass const & castor3d::RenderTechnique::getLastPass | ( | ) | const |
name Getters.
| C3D_API crg::ImageViewId const & castor3d::RenderTechnique::getLightDepthImgView | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References castor3d::Texture::imageId.
|
inline |
References castor3d::Texture::sampledViewId.
|
inline |
References castor3d::Texture::targetViewId.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| C3D_API SsaoConfig & castor3d::RenderTechnique::getSsaoConfig | ( | ) |
| C3D_API SsaoConfig const & castor3d::RenderTechnique::getSsaoConfig | ( | ) | const |
|
inline |
|
inline |
| C3D_API void castor3d::RenderTechnique::listIntermediates | ( | std::vector< IntermediateView > & | intermediates | ) |
Lists the intermediate view used by the whole technique.
| [out] | intermediates | Receives the intermediate views. |
|
inline |
| C3D_API crg::SemaphoreWaitArray castor3d::RenderTechnique::preRender | ( | crg::SemaphoreWaitArray const & | toWait, |
| ashes::Queue const & | queue | ||
| ) |
Renders maps needed for the actual rendering.
| [in] | toWait | The semaphores to wait. |
| [in] | queue | The queue receiving the render commands. |
|
inline |
| C3D_API void castor3d::RenderTechnique::update | ( | CpuUpdater & | updater | ) |
Updates the render pass, CPU wise.
| [in,out] | updater | The update data. |
| C3D_API void castor3d::RenderTechnique::update | ( | GpuUpdater & | updater | ) |
Updates the render pass, GPU wise.
| [in,out] | updater | The update data. |
| C3D_API bool castor3d::RenderTechnique::writeInto | ( | castor::TextFile & | file | ) |
Writes the technique into a text file.
| [in] | file | The file. |
|
friend |