Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ProgressivePMRenderer.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <atomic>
6
7namespace ph
8{
9
14{
15public:
22 PMCommonParams commonParams,
23 Viewport viewport,
24 SampleFilter filter,
25 uint32 numWorkers);
26
27 void doRender() override;
28 void retrieveFrame(std::size_t layerIndex, HdrRgbFrame& out_frame) override;
29
32
33 void asyncPeekFrame(
34 std::size_t layerIndex,
35 const Region& region,
36 HdrRgbFrame& out_frame) override;
37
39
40private:
41 void renderWithProgressivePM();
42
43 std::atomic_uint64_t m_photonsPerSecond;
44};
45
46}// end namespace ph
Common parameters of photon mapping.
Definition PMCommonParams.h:13
Definition PMRendererBase.h:23
Definition ProgressivePMRenderer.h:14
RenderStats asyncQueryRenderStats() override
Get general information of the ongoing rendering process. More information can be provided by the imp...
Definition ProgressivePMRenderer.cpp:186
RenderProgress asyncQueryRenderProgress() override
Get progress of the ongoing rendering process. Implementation is advised to provide this information ...
Definition ProgressivePMRenderer.cpp:197
void retrieveFrame(std::size_t layerIndex, HdrRgbFrame &out_frame) override
Get the rendered result.
Definition ProgressivePMRenderer.cpp:181
ProgressivePMRenderer(PMCommonParams commonParams, Viewport viewport, SampleFilter filter, uint32 numWorkers)
Definition ProgressivePMRenderer.cpp:30
RenderObservationInfo getObservationInfo() const
Get information about available transient outputs of an ongoing render operation. This information wi...
Definition ProgressivePMRenderer.cpp:224
void asyncPeekFrame(std::size_t layerIndex, const Region &region, HdrRgbFrame &out_frame) override
Get the intermediate render result. This method is similar to retrieveFrame(), except that correctnes...
Definition ProgressivePMRenderer.cpp:207
void doRender() override
Perform rendering.
Definition ProgressivePMRenderer.cpp:45
Meta information for data related to ongoing render operation.
Definition RenderObservationInfo.h:15
Definition RenderProgress.h:12
Definition RenderStats.h:12
uint32 numWorkers() const
Definition Renderer.h:155
An image reconstruction kernel.
Definition SampleFilter.h:17
Definition Viewport.h:16
The root for all renderer implementations.
Definition EEngineProject.h:6