![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <RenderTarget.hpp>
Public Member Functions | |
C3D_API | RenderTarget (Engine &engine, TargetType type, castor::Size const &size, castor::PixelFormat pixelFormat) |
Specified constructor. More... | |
C3D_API | ~RenderTarget () |
Destructor. 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 overlays GPU buffers to VRAM. More... | |
C3D_API crg::SemaphoreWaitArray | render (RenderDevice const &device, RenderInfo &info, ashes::Queue const &queue, crg::SemaphoreWaitArray const &toWait={}) |
Renders one frame. More... | |
C3D_API uint32_t | countInitialisationSteps () const |
C3D_API void | initialise (RenderDevice const &device, QueueData const &queueData, ProgressBar *progress=nullptr) |
Initialisation function. More... | |
C3D_API void | cleanup (RenderDevice const &device) |
Cleanup function. More... | |
C3D_API void | addTechniqueParameters (Parameters const ¶meters) |
adds RenderTechnique parameters. More... | |
C3D_API ViewportType | getViewportType () const |
C3D_API void | setViewportType (ViewportType value) |
Sets the ViewportType. More... | |
C3D_API void | setCamera (CameraSPtr camera) |
Sets the camera. More... | |
C3D_API void | setScene (Scene &scene) |
Sets the scene. More... | |
C3D_API void | setToneMappingType (castor::String const &name, Parameters const ¶meters) |
Sets the tone mapping implementation type. More... | |
C3D_API PostEffectSPtr | getPostEffect (castor::String const &name) const |
adds a post effect to the list. More... | |
C3D_API void | listIntermediateViews (IntermediateViewArray &result) const |
Lists the intermediate views used by this render target. More... | |
C3D_API void | resetSemaphore () |
C3D_API HdrConfig const & | getHdrConfig () const |
C3D_API HdrConfig & | getHdrConfig () |
C3D_API ShadowMapLightTypeArray | getShadowMaps () const |
C3D_API TechniquePassVector | getCustomRenderPasses () const |
SsaoConfig const & | getSsaoConfig () const |
SsaoConfig & | getSsaoConfig () |
bool | isInitialised () const |
castor::Size const & | getSize () const |
bool | hasTechnique () const |
RenderTechnique & | getTechnique () const |
SceneRPtr | getScene () const |
CameraSPtr | getCamera () const |
Texture const & | getTexture () const |
TexturePtr | getVelocity () const |
VkFormat | getPixelFormat () const |
TargetType | getTargetType () const |
uint32_t | getIndex () const |
PostEffectPtrArray const & | getHDRPostEffects () const |
PostEffectPtrArray const & | getSRGBPostEffects () const |
ToneMappingSPtr | getToneMapping () const |
crg::SemaphoreWaitArray const & | getSemaphore () const |
SceneCuller const & | getCuller () const |
SceneCuller & | getCuller () |
castor::Point2f const & | getJitter () const |
castor::String const & | getName () const |
HdrConfigUbo const & | getHdrConfigUbo () const |
crg::FrameGraph & | getGraph () |
C3D_API void | setExposure (float value) |
C3D_API void | setGamma (float value) |
void | setSsaoConfig (SsaoConfig const &config) |
void | setJitter (castor::Point2f const &value) |
Static Public Attributes | |
static C3D_API const castor::String | DefaultSamplerName |
The render target default sampler name. More... | |
C3D_API castor3d::RenderTarget::RenderTarget | ( | Engine & | engine, |
TargetType | type, | ||
castor::Size const & | size, | ||
castor::PixelFormat | pixelFormat | ||
) |
Specified constructor.
[in] | engine | The engine. |
[in] | type | The render target type. |
[in] | size | The render target dimensions. |
[in] | pixelFormat | The target's pixels format. |
C3D_API castor3d::RenderTarget::~RenderTarget | ( | ) |
Destructor.
C3D_API void castor3d::RenderTarget::addTechniqueParameters | ( | Parameters const & | parameters | ) |
adds RenderTechnique parameters.
[in] | parameters | The RenderTechnique parameters. |
C3D_API void castor3d::RenderTarget::cleanup | ( | RenderDevice const & | device | ) |
Cleanup function.
[in] | device | The GPU device. |
C3D_API uint32_t castor3d::RenderTarget::countInitialisationSteps | ( | ) | const |
|
inline |
|
inline |
|
inline |
C3D_API TechniquePassVector castor3d::RenderTarget::getCustomRenderPasses | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API PostEffectSPtr castor3d::RenderTarget::getPostEffect | ( | castor::String const & | name | ) | const |
adds a post effect to the list.
[in] | name | The effect name. |
|
inline |
|
inline |
C3D_API ShadowMapLightTypeArray castor3d::RenderTarget::getShadowMaps | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API ViewportType castor3d::RenderTarget::getViewportType | ( | ) | const |
|
inline |
C3D_API void castor3d::RenderTarget::initialise | ( | RenderDevice const & | device, |
QueueData const & | queueData, | ||
ProgressBar * | progress = nullptr |
||
) |
Initialisation function.
[in] | device | The GPU device. |
[in] | queueData | The queue receiving the GPU commands. |
[in] | progress | The optional progress bar. |
|
inline |
C3D_API void castor3d::RenderTarget::listIntermediateViews | ( | IntermediateViewArray & | result | ) | const |
Lists the intermediate views used by this render target.
[in,out] | result | Receives the views. |
C3D_API crg::SemaphoreWaitArray castor3d::RenderTarget::render | ( | RenderDevice const & | device, |
RenderInfo & | info, | ||
ashes::Queue const & | queue, | ||
crg::SemaphoreWaitArray const & | toWait = {} |
||
) |
Renders one frame.
[in] | device | The GPU device. |
[out] | info | Receives the render informations. |
[in] | queue | The queue receiving the render commands. |
[in] | toWait | The semaphores to wait. |
C3D_API void castor3d::RenderTarget::resetSemaphore | ( | ) |
C3D_API void castor3d::RenderTarget::setCamera | ( | CameraSPtr | camera | ) |
Sets the camera.
[in] | camera | The new camera. |
C3D_API void castor3d::RenderTarget::setExposure | ( | float | value | ) |
name Mutators.
C3D_API void castor3d::RenderTarget::setGamma | ( | float | value | ) |
|
inline |
Sets the scene.
[in] | scene | The new scene. |
|
inline |
C3D_API void castor3d::RenderTarget::setToneMappingType | ( | castor::String const & | name, |
Parameters const & | parameters | ||
) |
Sets the tone mapping implementation type.
[in] | name | The type. |
[in] | parameters | The parameters. |
C3D_API void castor3d::RenderTarget::setViewportType | ( | ViewportType | value | ) |
Sets the ViewportType.
[in] | value | The new ViewportType. |
C3D_API void castor3d::RenderTarget::update | ( | CpuUpdater & | updater | ) |
Updates the render pass, CPU wise.
[in,out] | updater | The update data. |
C3D_API void castor3d::RenderTarget::update | ( | GpuUpdater & | updater | ) |
Updates the render pass, GPU wise.
[in,out] | updater | The update data. |
C3D_API void castor3d::RenderTarget::upload | ( | ashes::CommandBuffer const & | cb | ) |
Uploads overlays GPU buffers to VRAM.
[in] | cb | The command buffer on which transfer commands are recorded. |
|
static |
The render target default sampler name.