Castor3D 0.16.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. | |
C3D_API | ~RenderTarget () noexcept |
Destructor. | |
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 void | upload (UploadData &uploader) |
Uploads overlays GPU buffers to VRAM. | |
C3D_API crg::SemaphoreWaitArray | render (ashes::Queue const &queue, crg::SemaphoreWaitArray const &toWait={}) |
Renders one frame. | |
uint32_t | countInitialisationSteps () const noexcept |
C3D_API void | initialise (RenderDevice const &device, QueueData const &queueData, ProgressBar *progress=nullptr) |
Initialisation function. | |
C3D_API void | initialise (OnInitialisedFunc const &onInitialised, ProgressBar *progress=nullptr) |
Initialisation function. | |
C3D_API void | cleanup (RenderDevice const &device) |
Cleanup function. | |
C3D_API ViewportType | getViewportType () const |
C3D_API void | setViewportType (ViewportType value) |
Sets the ViewportType. | |
C3D_API void | setCamera (Camera &camera) |
Sets the camera. | |
C3D_API void | setScene (Scene &scene) |
Sets the scene. | |
C3D_API void | setToneMappingType (castor::StringView name) |
Sets the tone mapping implementation type. | |
C3D_API PostEffectRPtr | getPostEffect (castor::String const &name) const |
adds a post effect to the list. | |
C3D_API void | resetSemaphore () |
C3D_API crg::FramePass const & | createVertexTransformPass (crg::FramePassGroup &graph) |
C3D_API HdrConfig const & | getHdrConfig () const |
C3D_API HdrConfig & | getHdrConfig () |
C3D_API ColourGradingConfig const & | getColourGradingConfig () const |
C3D_API ColourGradingConfig & | getColourGradingConfig () |
C3D_API ShadowMapLightTypeArray | getShadowMaps () const |
C3D_API ShadowBuffer * | getShadowBuffer () const |
C3D_API TechniquePassVector | getCustomRenderPasses () const |
C3D_API CameraUbo const & | getCameraUbo () const |
C3D_API SceneUbo const & | getSceneUbo () const |
C3D_API bool | hasIndirect () const noexcept |
C3D_API bool | hasSss () const noexcept |
C3D_API bool | areDebugTargetsEnabled () const noexcept |
SsaoConfig const & | getSsaoConfig () const noexcept |
SsaoConfig & | getSsaoConfig () noexcept |
bool | isInitialised () const noexcept |
castor::Size const & | getSize () const noexcept |
bool | hasTechnique () const noexcept |
RenderTechnique & | getTechnique () const noexcept |
SceneRPtr | getScene () const noexcept |
CameraRPtr | getCamera () const noexcept |
Texture const & | getTexture () const noexcept |
Texture const & | getVelocity () const noexcept |
VkFormat | getPixelFormat () const noexcept |
TargetType | getTargetType () const noexcept |
uint32_t | getIndex () const noexcept |
PostEffectArray const & | getHDRPostEffects () const noexcept |
PostEffectArray const & | getSRGBPostEffects () const noexcept |
ToneMappingRPtr | getToneMapping () const noexcept |
crg::SemaphoreWaitArray const & | getSemaphore () const noexcept |
SceneCuller const & | getCuller () const noexcept |
SceneCuller & | getCuller () noexcept |
castor::Point2f const & | getJitter () const noexcept |
castor::String const & | getName () const noexcept |
HdrConfigUbo const & | getHdrConfigUbo () const noexcept |
ColourGradingUbo const & | getColourGradingUbo () const noexcept |
crg::FrameGraph & | getGraph () noexcept |
crg::ResourcesCache & | getResources () noexcept |
bool | isInitialising () const noexcept |
bool | isUsingStereo () const noexcept |
float | getIntraOcularDistance () const noexcept |
IntermediateViewArray const & | getIntermediateViews () const noexcept |
bool | isFullLoadingEnabled () const noexcept |
ClustersConfig const & | getClustersConfig () const noexcept |
FrustumClusters * | getFrustumClusters () const noexcept |
void | setSsaoConfig (SsaoConfig config) noexcept |
void | setJitter (castor::Point2f const &value) noexcept |
void | setStereo (bool value) noexcept |
void | setIntraOcularDistance (float value) noexcept |
TargetDebugConfig & | getDebugConfig () noexcept |
ClustersConfig & | getClustersConfig () noexcept |
void | enableFullLoading (bool value) noexcept |
void | setClustersConfig (ClustersConfig config) noexcept |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
Engine * | getOwner () const |
Static Public Attributes | |
static C3D_API const castor::String | DefaultSamplerName |
The render target default sampler name. | |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
OwnedBy (Engine &owner) | |
Constructor. | |
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. |
|
noexcept |
Destructor.
|
noexcept |
C3D_API void castor3d::RenderTarget::cleanup | ( | RenderDevice const & | device | ) |
Cleanup function.
[in] | device | The GPU device. |
|
noexcept |
C3D_API crg::FramePass const & castor3d::RenderTarget::createVertexTransformPass | ( | crg::FramePassGroup & | graph | ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API ColourGradingConfig & castor3d::RenderTarget::getColourGradingConfig | ( | ) |
C3D_API ColourGradingConfig const & castor3d::RenderTarget::getColourGradingConfig | ( | ) | const |
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
References CU_Require.
C3D_API TechniquePassVector castor3d::RenderTarget::getCustomRenderPasses | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API PostEffectRPtr castor3d::RenderTarget::getPostEffect | ( | castor::String const & | name | ) | const |
adds a post effect to the list.
[in] | name | The effect name. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API ShadowBuffer * castor3d::RenderTarget::getShadowBuffer | ( | ) | const |
C3D_API ShadowMapLightTypeArray castor3d::RenderTarget::getShadowMaps | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
C3D_API ViewportType castor3d::RenderTarget::getViewportType | ( | ) | const |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
C3D_API void castor3d::RenderTarget::initialise | ( | OnInitialisedFunc const & | onInitialised, |
ProgressBar * | progress = nullptr ) |
Initialisation function.
[in] | onInitialised | The callback called when initialisation ends. |
[in] | progress | The optional progress bar. |
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. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API crg::SemaphoreWaitArray castor3d::RenderTarget::render | ( | ashes::Queue const & | queue, |
crg::SemaphoreWaitArray const & | toWait = {} ) |
Renders one frame.
[in] | queue | The queue receiving the render commands. |
[in] | toWait | The semaphores to wait. |
C3D_API void castor3d::RenderTarget::resetSemaphore | ( | ) |
Sets the camera.
[in] | camera | The new camera. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Sets the scene.
[in] | scene | The new scene. |
|
inlinenoexcept |
name Mutators.
|
inlinenoexcept |
C3D_API void castor3d::RenderTarget::setToneMappingType | ( | castor::StringView | name | ) |
Sets the tone mapping implementation type.
[in] | name | The type. |
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 | ( | UploadData & | uploader | ) |
Uploads overlays GPU buffers to VRAM.
[in,out] | uploader | Receives the upload requests. |
|
static |
The render target default sampler name.