Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::OverlayPass Class Reference

#include <OverlayPass.hpp>

Inheritance diagram for castor3d::OverlayPass:
Inheritance graph
[legend]
Collaboration diagram for castor3d::OverlayPass:
Collaboration graph
[legend]

Public Member Functions

C3D_API OverlayPass (crg::FramePass const &pass, crg::GraphContext &context, crg::RunnableGraph &graph, RenderDevice const &device, Scene const &scene, VkExtent2D const &size, Texture const &output, HdrConfigUbo const &hdrConfigUbo, bool drawGlobal=false)
 Constructor.
 
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.
 

Constructor & Destructor Documentation

◆ OverlayPass()

C3D_API castor3d::OverlayPass::OverlayPass ( crg::FramePass const & pass,
crg::GraphContext & context,
crg::RunnableGraph & graph,
RenderDevice const & device,
Scene const & scene,
VkExtent2D const & size,
Texture const & output,
HdrConfigUbo const & hdrConfigUbo,
bool drawGlobal = false )

Constructor.

Parameters
[in]passThe parent frame pass.
[in]contextThe rendering context.
[in]graphThe runnable graph.
[in]deviceThe GPU device.
[in]sceneThe scene.
[in]sizeThe render area dimensions.
[in]outputThe result texture.
[in]hdrConfigUboThe HDR configuration used when rendering to an HDR screen.
[in]drawGlobaltrue to also draw global overlays.

Member Function Documentation

◆ update() [1/2]

C3D_API void castor3d::OverlayPass::update ( CpuUpdater & updater)

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

◆ update() [2/2]

C3D_API void castor3d::OverlayPass::update ( GpuUpdater & updater)

Updates the render pass, GPU wise.

Parameters
[in,out]updaterThe update data.

◆ upload()

C3D_API void castor3d::OverlayPass::upload ( UploadData & uploader)

Uploads overlays GPU buffers to VRAM.

Parameters
[in,out]uploaderReceives the upload requests.

The documentation for this class was generated from the following file: