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


Public Member Functions | |
| C3D_API | RenderTargetCache (Engine &engine) |
| Constructor. More... | |
| C3D_API | ~RenderTargetCache () |
| Destructor. More... | |
| C3D_API RenderTargetSPtr | add (TargetType type, castor::Size const &size, castor::PixelFormat pixelFormat) |
| Creates a render target of given type. More... | |
| C3D_API void | remove (RenderTargetSPtr target) |
| Removes a render target from the render loop. 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 void | upload (ashes::CommandBuffer const &cb) |
| Uploads all overlay GPU buffers to VRAM. More... | |
| C3D_API crg::SemaphoreWaitArray | render (RenderDevice const &device, RenderInfo &info, ashes::Queue const &queue, crg::SemaphoreWaitArray signalsToWait) |
| Renders into the render targets. More... | |
| C3D_API void | cleanup (RenderDevice const &device) |
| Cleans up the collection. More... | |
| C3D_API void | clear () |
| Flushes the collection. More... | |
| C3D_API void | registerToneMappingName (castor::String const &name, castor::String const &fullName) |
| Registers tone mapping display name. More... | |
| void | lock () const |
| Locks the collection mutex. More... | |
| void | unlock () const |
| Unlocks the collection mutex. More... | |
| template<typename FuncType > | |
| void | forEach (FuncType func) const |
| Applies a function to all the elements of this cache. More... | |
| template<typename FuncType > | |
| void | forEach (FuncType func) |
| Applies a function to all the elements of this cache. More... | |
| castor::String const & | getToneMappingName (castor::String const &name) const |
| ToneMappingFactory const & | getToneMappingFactory () const |
| ToneMappingFactory & | getToneMappingFactory () |
| PostEffectFactory const & | getPostEffectFactory () const |
| PostEffectFactory & | getPostEffectFactory () |
| RenderTargetArray const & | getRenderTargets (TargetType type) |
Constructor.
| [in] | engine | The engine. |
| C3D_API castor3d::RenderTargetCache::~RenderTargetCache | ( | ) |
Destructor.
| C3D_API RenderTargetSPtr castor3d::RenderTargetCache::add | ( | TargetType | type, |
| castor::Size const & | size, | ||
| castor::PixelFormat | pixelFormat | ||
| ) |
Creates a render target of given type.
| [in] | type | The render target type. |
| [in] | size | The render target dimensions. |
| [in] | pixelFormat | The render target pixels format. |
| C3D_API void castor3d::RenderTargetCache::cleanup | ( | RenderDevice const & | device | ) |
Cleans up the collection.
| [in] | device | The GPU device. |
| C3D_API void castor3d::RenderTargetCache::clear | ( | ) |
Flushes the collection.
|
inline |
Applies a function to all the elements of this cache.
| [in] | func | The function. |
References lock().

|
inline |
Applies a function to all the elements of this cache.
| [in] | func | The function. |
References lock().

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
name Getters.
|
inline |
| C3D_API void castor3d::RenderTargetCache::registerToneMappingName | ( | castor::String const & | name, |
| castor::String const & | fullName | ||
| ) |
Registers tone mapping display name.
| C3D_API void castor3d::RenderTargetCache::remove | ( | RenderTargetSPtr | target | ) |
Removes a render target from the render loop.
| [in] | target | The render target |
| C3D_API crg::SemaphoreWaitArray castor3d::RenderTargetCache::render | ( | RenderDevice const & | device, |
| RenderInfo & | info, | ||
| ashes::Queue const & | queue, | ||
| crg::SemaphoreWaitArray | signalsToWait | ||
| ) |
Renders into the render targets.
| [in] | device | The GPU device. |
| [in,out] | info | Receives the render informations. |
| [in] | queue | The queue to which the render commands will be submitted to. |
| [in] | signalsToWait | The semaphores and stages to wait for. |
|
inline |
Unlocks the collection mutex.
| C3D_API void castor3d::RenderTargetCache::update | ( | CpuUpdater & | updater | ) |
Updates the render pass, CPU wise.
| [in,out] | updater | The update data. |
| C3D_API void castor3d::RenderTargetCache::update | ( | GpuUpdater & | updater | ) |
Updates the render pass, GPU wise.
| [in,out] | updater | The update data. |
| C3D_API void castor3d::RenderTargetCache::upload | ( | ashes::CommandBuffer const & | cb | ) |
Uploads all overlay GPU buffers to VRAM.
| [in] | cb | The command buffer on which transfer commands are recorded. |